orderbook
    WSS

    Endpoint
    wss://api.bitkub.com/websocket-api/orderbook

    Description

    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

    {
      "data": [
        [121.82, 112510.1, 0.00108283, 0, false, false]
      ],
      "event": "bidschanged",
      "pairing_id": 1
    }

    Field Descriptions

    bidschanged / askschanged

    FieldTypeDescription
    data[0][0]floatVolume
    data[0][1]floatRate (price)
    data[0][2]floatAmount
    data[0][3]intReserved (always 0)
    data[0][4]booleanIs new order
    data[0][5]booleanUser is owner (deprecated)

    tradeschanged

    FieldTypeDescription
    data[0][0]intTimestamp
    data[0][1]floatRate (price)
    data[0][2]floatAmount
    data[0][3]stringSide: BUY or SELL
    data[0][4]intReserved (always 0)
    data[0][5]intReserved (always 0)
    data[0][6]booleanIs new order
    data[0][7]booleanUser is buyer (available when authenticated)
    data[0][8]booleanUser is seller (available when authenticated)
    data[1][0] / data[2][0]floatVolume
    data[1][1] / data[2][1]floatRate (price)
    data[1][2] / data[2][2]floatAmount
    data[1][3] / data[2][3]intReserved (always 0)
    data[1][4] / data[2][4]booleanIs new order
    data[1][5] / data[2][5]booleanUser is owner (available when authenticated)

    depthchanged

    FieldTypeDescription
    pricefloatPrice
    base_volumefloatAmount in base currency
    quote_volumefloatAmount in quote currency

    global.ticker

    FieldTypeDescription
    idintSymbol ID
    laststringLatest price
    percentChangestringPrice difference in percent
    baseVolumestringAmount of crypto
    quoteVolumestringAmount of fiat
    high24hrstringHighest price in last 24 hours
    low24hrstringLowest price in last 24 hours
    highestBidstringHighest bidding price
    lowestAskstringLowest asking price