Hosted tool
Crypto price history
Coming
Read historical cryptocurrency price candles.
crypto.ohlcversion 1
Price
0.01
credits per call
Compute only: upstream charges are not included in this price.
Availability
Coming
Published in the catalog, not yet callable.
Access
Coming
Category Crypto & DeFi
Input
{
"additionalProperties": false,
"properties": {
"id": {
"maxLength": 80,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
}Result
array<{timestamp:integer,open:number,high:number,low:number,close:number}>Default fields: timestamp open high low close
Limits
| Synchronous deadline | 15 s |
|---|---|
| Maximum result | 65,536 bytes |
| Result pages | 1 |
| Maximum upstream read | 1,048,576 bytes |
Example call
Provisional: the invoke contract ships with the execution lane
curl https://haidercode.ai/v1/tools/crypto.ohlc/invoke \
-H "Authorization: Bearer <HK_KEY>" \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: ohlc-1' \
-d '{"arguments":{"id":"…"},"max_credits":"0.05"}'Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.