Kline/Candlestick Data
Type: NONE
External endpoint:
GET /fapi/v1/klines
Rocky impl:GET /v1/markets/{symbol}/candles✓
OHLCV buckets built on the fly from ledger.trades using date_trunc.
Request
GET /v1/markets/{symbol}/candles?interval=1m&limit=500
Query params
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
interval | string | no | "1m" | One of 1m, 1h, 1d. Other values → 400. |
limit | integer | no | 500 | Max candles, clamped to 1000. |
Response — 200
[
{
"bucket_ms": 1748275140000,
"open": "76510.00",
"high": "76525.00",
"low": "76500.00",
"close": "76521.34",
"volume": "1.2456"
}
]
Candles are returned ascending by bucket_ms. The most recent bucket is partial until its boundary closes.
Rocky's klines live on V1. The standard-shaped
/fapi/v1/klines(array-of-arrays) has not been added, and intervals are limited to1m / 1h / 1d—3m,5m,15m,30m,2h,4h,6h,8h,12h,1w,1Mare not yet supported.