Agg ticker
Request format
agg_ticker@{symbol}
- Example:
agg_ticker@btc_usdt - Push rate:
1000ms
Request example
Subscribe — After establishing the WebSocket connection, send the following JSON string.
SUBSCRIBE
{
"method": "SUBSCRIBE",
"params": ["agg_ticker@btc_usdt"],
"id": "test" // this param could call whatever you want
}
Response example
{
"topic": "agg_ticker",
"event": "agg_ticker@btc_usdt",
"data": {
"s": "btc_index", // symbol
"o": "49000", // open
"c": "50000", // close
"h": "0.1", // high
"l": "0.1", // low
"a": "0.1", // volume
"v": "0.1", // quote volume
"ch": "0.21", // change
"i": "0.21", // index price
"m": "0.21", // mark price
"bp": "0.21", // best bid
"ap": "0.21", // best ask
"t": 123124124 // timestamp
}
}