Endpoint
Query parameters
Trading pair symbol (e.g.,
SOL_USDC, BTC_USDT)Time interval for each candlestick. Supported values:
1minor1MIN- One minute1hor1H- One hour1dor1D- One day1wor1W- One week1mor1M- One month1yor1Y- One year
Start timestamp in Unix milliseconds format. Only klines after this time will be returned.
Response
Returns an array of kline objects, sorted by time in ascending order.Opening price for the time period
Highest price during the time period
Lowest price during the time period
Closing price for the time period
Total volume traded during the time period (in base asset)
Total volume traded during the time period (in quote asset, i.e., price × quantity)
Number of trades executed during the time period
Start timestamp of the kline period in ISO 8601 UTC format
End timestamp of the kline period in ISO 8601 UTC format
Example request
Example response
Notes
- Klines are generated using PostgreSQL’s
date_truncfunction for time bucketing - The
openprice is the first trade price in the period - The
closeprice is the last trade price in the period - All numeric values are returned as strings to preserve decimal precision
- Timestamps are returned in UTC timezone
- If no trades occurred in a time period, no kline will be generated for that period