ohlcv#
WS wss://api.pro.anboto.xyz/api/v2/ws
Candlestick stream per symbol; subscribe with {"topic":"ohlcv","exchange":...,"symbol":"BTC/USDT","method":"subscribe"}
Authenticate the connection with a listenKey — see WebSocket.
Subscribe message#
topic string requiredohlcvexchange string requiredTrading exchange, case-insensitive
method enum requiredsubscribe / unsubscribeUpdate message fields#
symbol stringexchange stringassetClass stringopen numberhigh numberlow numberclose numbervolume numberlast numberopenTime integercloseTime integerinterval enumONE_MINUTE, FIVE_MINUTE, FIFTEEN_MINUTE, THIRTY_MINUTE, ONE_HOUR, SIX_HOUR, ONE_DAYResponses#
| code 0 | Acknowledgment of successful subscription |
| code ≠ 0 | Error response for failed subscription — see Errors |
Update ohlcv
{
"symbol": "string",
"exchange": "string",
"assetClass": "string",
"open": 0.0,
"high": 0.0,
"low": 0.0,
"close": 0.0,
"volume": 0.0,
"last": 0.0,
"openTime": 0,
"closeTime": 0,
"interval": "ONE_MINUTE"
}
Ack code 0
{
"code": 0,
"message": "string"
}