{time}: 1m/5m/15m/30m/1h/1d/1w/1M
Push interval: 1s
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
{
"id": "clientID6",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "PERP_NEAR_USDC@kline_1m",
"ts": 1618822432146,
"data": {
"symbol": "PERP_NEAR_USDC",
"type": "1m",
"open": 15.97,
"close": 14.76,
"high": 16.97,
"low": 14.06,
"volume": 44.00947568,
"amount": 2504584.9,
"startTime": 1618822380000,
"endTime": 1618822440000
}
}
Subscribe to OHLC kline/candlestick updates for a symbol at configurable time intervals via WebSocket.
{time}: 1m/5m/15m/30m/1h/1d/1w/1M
Push interval: 1s
{
"id": "clientID6",
"topic": "PERP_NEAR_USDC@kline_1m",
"event": "subscribe"
}
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | Y | id generate by client |
| event | string | Y | subscribe/unsubscribe |
| topic | string | Y | {symbol}@kline_{time} |
{
"id": "clientID6",
"event": "subscribe",
"success": true,
"ts": 1609924478533
}
{
"topic": "PERP_NEAR_USDC@kline_1m",
"ts": 1618822432146,
"data": {
"symbol": "PERP_NEAR_USDC",
"type": "1m",
"open": 15.97,
"close": 14.76,
"high": 16.97,
"low": 14.06,
"volume": 44.00947568,
"amount": 2504584.9,
"startTime": 1618822380000,
"endTime": 1618822440000
}
}