trade#
WS wss://api.pro.anboto.xyz/api/v2/ws
Channel for subscribing to trade (fill) updates for a specific exchange
Authenticate the connection with a listenKey — see WebSocket.
Subscribe message#
topic string requiredtradeexchange string requiredTrading exchange, case-insensitive
method enum requiredsubscribe / unsubscribeUpdate message fields#
tradeId stringAnboto's trade Id
orderId integerOrder where the trade belong
symbol stringthe symbol of the trade
takerOrMaker enummaker or taker of the trade —
MAKER, TAKERprice decimalthe price of the trade
amount decimalthe quantity of the trade
cost decimalthe notional of the trade
feeCurrency stringfee currency
feeCost decimalthe fee of the trade
timestamp integerUnix timestamp of this status change in milliseconds
extTradeId stringtrade Id from exchange
extOrderId stringorder Id of the trade from exchnage
Responses#
| code 0 | Acknowledgment of successful subscription |
| code ≠ 0 | Error response for failed subscription — see Errors |
{
"topic": "trade",
"exchange": "BINANCE",
"method": "subscribe"
}
{
"topic": "order",
"exchange": "BINANCE",
"method": "unsubscribe"
}
Update trade
{
"tradeId": 151990408,
"orderId": "558547168212975616",
"symbol": "KITE/USDT:USDT",
"side": "SELL",
"takerOrMaker": "MAKER",
"price": 0.21735,
"amount": 153,
"cost": 33.25455,
"feeCurrency": "BNB",
"feeCost": 7.55e-06,
"timestamp": null,
"extTradeId": 1204004183,
"extOrderId": 151990408,
"clientOrderId": "554500941080543232"
}
Ack code 0
{
"code": 0,
"message": "string"
}