Candles (OHLCV)
get/v1/market/candles
https://data.decryptr.ai/v1/market/candles
- API planDeveloper, and every plan above it. Data is 60 minutes behind live on this plan.
- Scope
coins:read - Cost1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back. How units are counted
- CreditIncludes data derived from Hyperliquid and Binance USD-M public market data.
Rate limits by plan
| Plan | Units a month | Per second | Per minute | Most per request |
|---|---|---|---|---|
| Developer | 1,000 | 2 | 20 | 10 |
| Starter | 50,000 | 5 | 60 | 25 |
| Pro | 300,000 | 15 | 300 | 50 |
| Business | 1,500,000 | 40 | 900 | 100 |
| Enterprise | Agreed | Agreed | Agreed | Agreed |
A 429 carries the full rate-limit header set and a Retry-After. Rate limits
Errors
- 400The request was refused before any data was read. Nothing is charged.
- 401No usable key. Nothing is charged.
- 402The account cannot use the API until billing is sorted. Nothing is charged.
- 403The key may not use this endpoint. Nothing is charged.
- 404No such item. A lookup is still charged what it asked for.
- 429A limit was reached (units or streams). Nothing was read and nothing is charged. Wait Retry-After seconds, back off with jitter, or ask for fewer items.
- 500Something failed on our side. Nothing is charged. Retry with backoff.
- 503The API is switched off, busy, or a query ran too long. Nothing is charged. Retry after Retry-After seconds.
Errors follow RFC 9457. Every error code
Open, high, low, close and volume candles for one asset, newest first. timeframe is 1m, 5m, 15m, 1h (default), 4h or 1d; source is hyperliquid (default) or binance (Binance USD-M). A page reads at most limit candles, so large histories are paged with next_cursor; next_cursor can be set even when a page holds fewer than limit candles (a gap in trading). History is limited by plan (developer 7 days, starter 30, pro 365, business all). Not found when the archive holds no such candles.
Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data.
Cost: 1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back.
Needs scope coins:read and the developer plan or above.
AuthorizationBearer <dcr_live_<8 hex>_<43 base64url> or dcr_test_...>Your API key as a Bearer token: Authorization: Bearer dcr_live_....
asset*stringAsset symbol, letters and digits, case-insensitive (required).
^[A-Za-z0-9]{1,15}$timeframe?stringCandle length: 1m, 5m, 15m, 1h (default), 4h or 1d.
"1m""5m""15m""1h""4h""1d"source?stringThe venue: hyperliquid (default) or binance (Binance USD-M).
"hyperliquid""binance"since?stringOnly items at or after this time (ISO 8601 with offset). Must be inside your plan's history (Developer 7 days, Starter 30, Pro 365, Business all). Defaults to the start of your history.
date-timeuntil?stringOnly items at or before this time (ISO 8601 with offset). Defaults to now; on Developer it is capped 60 minutes before now.
date-timecursor?stringnext_cursor from the previous page, passed back as it is. Opaque: do not build or change it.
length <= 300limit?integerItems to return, 1 to 100. Your plan allows max_page units per request (Developer 10, Starter 25, Pro 50, Business 100), so at most max_page divided by this endpoint's units per item. Default 20, or that maximum if lower. The request reserves limit x units per item before it runs: ask only for what you need.
1 <= value <= 100OK.
application/json- response
data*array<>as_of*stringWhen the response was made.
date-timenext_cursor*|Pass as cursor for the next page. null when this is the last page.
attribution*stringAttribution you must keep with this data.
disclaimer*stringPlain-language notice. Information only, not financial advice.
meta*Where the figures come from.
curl -X GET 'https://data.decryptr.ai/v1/market/candles?asset=BTC&timeframe=1h&source=hyperliquid&since=2026-10-20T00%3A00%3A00Z&until=2026-10-23T12%3A00%3A00Z&cursor=eyJ0IjoiMjAyNi0xMC0yM1QxMDowMDowMC4wMDBaIn0&limit=10'{ "data": [ { "asset": "BTC", "source": "hyperliquid", "timeframe": "1h", "open_time": "2026-10-23T11:00:00.000Z", "open": 81100, "high": 81160, "low": 81060, "close": 81120, "volume": 812.5, "trades": 14210 }, { "asset": "BTC", "source": "hyperliquid", "timeframe": "1h", "open_time": "2026-10-23T10:00:00.000Z", "open": 81050, "high": 81110, "low": 81010, "close": 81070, "volume": 812.5, "trades": 14210 } ], "as_of": "2026-10-23T12:12:30.000Z", "next_cursor": "eyJ0IjoiMjAyNi0xMC0yM1QxMDowMDowMC4wMDBaIn0", "attribution": "Includes data derived from Hyperliquid and Binance USD-M public market data.", "disclaimer": "Information only, not financial advice.", "meta": { "source": "Hyperliquid public data, from the Decryptr permanent archive" }}Tickers for several assets GET
The latest Hyperliquid ticker for several assets at once, from Decryptr's 15 minute samples: mark and oracle price, the 24 hour open, high, low and change, day volume, funding rate, premium and open interest. Samples older than 2 hours are not shown. Assets with no ticker come back in missing and are still charged. On the developer plan tickers are 60 minutes late. Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data. Cost: 1 unit per id asked for, found or not. Needs scope `coins:read` and the developer plan or above.
Funding rate history GET
Funding rate history for one perpetual, newest first, from Hyperliquid (hourly, with premium) or Binance USD-M (every 8 hours, with the mark price). Not found when the archive holds none. Served during Decryptr's friends-only testing: the exchange, CoinGecko and Coinalyze data behind it is used on Decryptr's own risk acceptance of those sources' terms, so this endpoint may be restricted or withdrawn before general availability. Keep the attribution line and meta.source with the data. Cost: 1 unit per item returned, at least one item's worth. The request first reserves limit x 1 unit (and is refused with 429 if that many are not available), then pays only for what came back. Needs scope `derivatives:read` and the starter plan or above.