Endpoint
Authentication
Parameters
Required
The trading pair (e.g.
BTC-USD, ETH-USD).K-line interval. One of:
1h, 4h, 1d, 1w.Optional
Start of time range (ISO 8601 UTC, e.g.
2026-03-01T00:00:00Z). Must be used together with end_time.End of time range (ISO 8601 UTC). Must be used together with
start_time.Maximum number of bars to return. Defaults vary by interval:
1h = 24, 4h = 42, 1d = 30, 1w = 12. Max 200. When start_time/end_time are provided, limit acts as a safety cap only.Query Modes
This endpoint supports two mutually exclusive query modes:| Mode | Parameters | Behavior |
|---|---|---|
| Recent | limit only (or omit for default) | Returns the most recent N closed candles |
| Range | start_time + end_time | Returns all closed candles within the time range |
start_time or only end_time returns a 400 error.
Response
Credits
Each call consumes 1 credit, regardless of the number of bars returned.Code Examples
Example Response
Notes
- Binance Spot only — futures data is not available.
- Closed candles only — the current in-progress candle is never included.
- No minute-level intervals —
1m,5m,15mare not supported. - First request latency — the first query for a given ticker + interval + range may be slower as data is fetched from Binance and cached. Subsequent queries for the same range return instantly.