Download OpenAPI specification:
Public HTTP API for asset metadata, spot prices, OHLC candles, and the OpenAPI document.
{- "assets": [
- {
- "assetType": "crypto",
- "display": {
- "decimals": 0,
- "logoUrl": "string",
- "name": "string"
}, - "enabledSources": [
- "string"
], - "freshness": {
- "sources": [
- {
- "source": "string",
- "staleAfterSeconds": 0
}
], - "updatedAt": 0
}, - "name": "string",
- "risk": "Low",
- "description": "string",
- "supportedCurrencies": [
- "string"
], - "symbol": "string",
- "venue": {
- "name": "string",
- "policy": "string",
- "tokenName": "string"
}
}
]
}{- "assetType": "crypto",
- "display": {
- "decimals": 0,
- "logoUrl": "string",
- "name": "string"
}, - "enabledSources": [
- "string"
], - "freshness": {
- "sources": [
- {
- "source": "string",
- "staleAfterSeconds": 0
}
], - "updatedAt": 0
}, - "name": "string",
- "risk": "Low",
- "description": "string",
- "supportedCurrencies": [
- "string"
], - "symbol": "string",
- "venue": {
- "name": "string",
- "policy": "string",
- "tokenName": "string"
}
}Returns OHLC candles for a source or the median aggregation. JSON responses are capped to the latest 2 calendar months by clamping the effective from value in the response body so clients can page backwards by comparing the requested and returned range. Request Accept: application/octet-stream to receive the native binary candle stream instead; binary requests beyond the same 2-month public range limit are rejected with 429. Each candle row is 7 IEEE 754 little-endian 64-bit floating point values in this order: openTime, open, high, low, close, closeTime, volume.
| asset required | string non-empty Canonical asset ticker. |
| currency required | string non-empty Quote currency. |
| interval required | string^[1-9][0-9]*(m|h|d)$ OHLC interval. Values must represent a positive multiple of 5 minutes. Hour and day aliases such as |
| from required | string non-empty Inclusive start timestamp in milliseconds since 1970, encoded as a string. JSON responses may clamp this to |
| to required | string non-empty Exclusive end timestamp in milliseconds since 1970, encoded as a string. |
| source | string non-empty Optional source identifier. When omitted, the API returns median candles across fresh enabled sources. |
{- "aggregation": "source",
- "asset": "string",
- "candles": [
- {
- "close": 0,
- "closeTime": 0,
- "high": 0,
- "low": 0,
- "open": 0,
- "openTime": 0,
- "volume": 0
}
], - "currency": "string",
- "from": 0,
- "interval": "string",
- "source": "string",
- "to": 0
}Returns chart-optimized OHLC candles for supported common ranges. The endpoint reads through a chart cache and refreshes cached windows by rebuilding only the trailing tail when enough time has elapsed since the last cached candle close. Public requests that ask for more detail than the per-range minimum interval permits are rejected with 429: 1d >= 5m, 1w >= 15m, 1m >= 1h, 3m >= 4h, ytd >= 12h, 1y >= 12h.
| asset required | string non-empty Canonical asset ticker. |
| currency required | string non-empty Quote currency. |
| range | string Enum: "1d" "1w" "1m" "3m" "ytd" "1y" Requested chart range. Defaults to |
| resolution | integer [ 1 .. 1000 ] Requested chart resolution as a target candle count. Defaults to 100. Requests fail with |
| source | string non-empty Optional source identifier. When omitted, the API returns the median chart across enabled sources. |
{- "aggregation": "source",
- "asset": "string",
- "candles": [
- {
- "close": 0,
- "closeTime": 0,
- "high": 0,
- "low": 0,
- "open": 0,
- "openTime": 0,
- "volume": 0
}
], - "currency": "string",
- "from": 0,
- "intervalMs": 0,
- "range": "1d",
- "resolution": 0,
- "source": "string",
- "to": 0
}Returns spot prices for up to 50 requested asset-currency-source combinations in request order.
required | Array of objects (SpotPriceQuery) <= 50 items |
{- "requests": [
- {
- "asset": "string",
- "currency": "string",
- "source": "string"
}
]
}{- "items": [
- {
- "ok": true,
- "request": {
- "asset": "string",
- "currency": "string",
- "source": "string"
}, - "result": {
- "aggregation": "source",
- "asset": "string",
- "asOf": 0,
- "currency": "string",
- "fresh": true,
- "price": 0,
- "providerTimestamp": 0,
- "quality": {
- "divergenceBps": 0,
- "fresh": true,
- "staleReason": "string"
}, - "source": "string"
}
}
]
}| asset required | string non-empty Canonical asset ticker. |
| currency required | string non-empty Quote currency. |
| source | string non-empty Optional source identifier. When omitted, the API returns the median across fresh enabled sources. |
{- "aggregation": "source",
- "asset": "string",
- "asOf": 0,
- "currency": "string",
- "fresh": true,
- "price": 0,
- "providerTimestamp": 0,
- "quality": {
- "divergenceBps": 0,
- "fresh": true,
- "staleReason": "string"
}, - "source": "string"
}