Subscriptions
OHLC
OHLC candle updates
Public · 6 fields
Topic futures/inverse/btc_usd/ohlc/{timeframe}
OHLC candle updates
Available timeframes: 1m, 3m, 5m, 10m, 15m, 30m, 45m, 1h, 2h, 3h, 4h, 1d, 1w, 1month, 3months
Public topic — anyone connected to the WebSocket can subscribe, no API key needed.
Subscribe
Subscribe by calling the subscribe method with this topic.
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "subscribe",
"params": {
"topics": [
"futures/inverse/btc_usd/ohlc/1m"
]
}
}Payload
Each notification carries the fields below in params.data.
time*numberopen*numberhigh*numberlow*numberclose*numbervolume*numberExample notification
The server pushes the JSON-RPC notification below for every event on this topic.
Notification
{
"jsonrpc": "2.0",
"method": "subscription",
"params": {
"topic": "futures/inverse/btc_usd/ohlc/1m",
"data": {
"time": 0,
"open": 0,
"high": 0,
"low": 0,
"close": 0,
"volume": 0
}
}
}