Finance
Normalized + gap-filled OHLCV candles API
Fetch OHLCV (open/high/low/close/volume) candles for a crypto pair from Binance public REST and return them as clean typed candles plus a gap report — every missing interval is detected and forward-filled with a flagged synthetic candle so charting and indicator code never breaks on holes. Answers 'give me 1h BTC-USD candles', 'are there any missing intervals in this price history', 'normalized OHLCV for ETH-USDT'.
Price$0.03per request
MethodPOST
Route/v1/markets/ohlcv
StatusLive
MIME typeapplication/json
Rate limit60/minute
Cache60s public
marketsohlcvcandlesklinescryptoprice-historybinancetrading
API URL
Integration docshttps://x402.hexl.dev/v1/markets/ohlcvExample request
{
"pair": "BTC-USD",
"interval": "1h",
"limit": 3
}Example response
{
"pair": "BTC-USD",
"symbol": "BTCUSDT",
"interval": "1h",
"requestedLimit": 3,
"candles": [
{
"openTime": 1748736000000,
"open": 67800.1,
"high": 68120,
"low": 67750.5,
"close": 68010.2,
"volume": 1423.55,
"closeTime": 1748739599999
},
{
"openTime": 1748739600000,
"open": 68010.2,
"high": 68300,
"low": 67980,
"close": 68240.7,
"volume": 1110.32,
"closeTime": 1748743199999
},
{
"openTime": 1748743200000,
"open": 68240.7,
"high": 68410,
"low": 68100,
"close": 68155.9,
"volume": 980.14,
"closeTime": 1748746799999
}
],
"gaps": [],
"count": 3,
"filledCount": 0
}Input schema
{
"type": "object",
"required": [
"pair"
],
"properties": {
"pair": {
"type": "string",
"minLength": 3,
"examples": [
"BTC-USD",
"ETH-USDT"
]
},
"interval": {
"type": "string",
"examples": [
"1h",
"15m",
"1d"
]
},
"limit": {
"type": "number",
"minimum": 1,
"maximum": 1000,
"examples": [
100
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}