Endpoint wss://api.bitkub.com/websocket-api/orderbookDescription Real-time order book data using numeric symbol ID. Emits 5 event types: `bidschanged`, `askschanged`, `tradeschanged`, `depthchanged`, and `global.ticker`. bidschanged/askschanged fire when a buy/sell order is opened, closed, or cancelled (max 30 orders each); tradeschanged fires on matched trades and is also sent as initial data on connect (max 30 each); depthchanged fires when order book depth changes; ticker/global.ticker aggregate the above per-symbol or across all symbols respectively.
Response bidschanged / askschanged tradeschanged depthchanged global.ticker
{
"data": [
[121.82, 112510.1, 0.00108283, 0, false, false]
],
"event": "bidschanged",
"pairing_id": 1
}
Field Descriptions bidschanged / askschanged Field Type Description data[0][0] float Volume data[0][1] float Rate (price) data[0][2] float Amount data[0][3] int Reserved (always 0) data[0][4] boolean Is new order data[0][5] boolean User is owner (deprecated)
tradeschanged Field Type Description data[0][0] int Timestamp data[0][1] float Rate (price) data[0][2] float Amount data[0][3] string Side: BUY or SELL data[0][4] int Reserved (always 0) data[0][5] int Reserved (always 0) data[0][6] boolean Is new order data[0][7] boolean User is buyer (available when authenticated) data[0][8] boolean User is seller (available when authenticated) data[1][0] / data[2][0] float Volume data[1][1] / data[2][1] float Rate (price) data[1][2] / data[2][2] float Amount data[1][3] / data[2][3] int Reserved (always 0) data[1][4] / data[2][4] boolean Is new order data[1][5] / data[2][5] boolean User is owner (available when authenticated)
depthchanged Field Type Description price float Price base_volume float Amount in base currency quote_volume float Amount in quote currency
global.ticker Field Type Description id int Symbol ID last string Latest price percentChange string Price difference in percent baseVolume string Amount of crypto quoteVolume string Amount of fiat high24hr string Highest price in last 24 hours low24hr string Lowest price in last 24 hours highestBid string Highest bidding price lowestAsk string Lowest asking price