Skip to main content

book~{instrument_name}

CHANNEL 

wss://stream.crypto.com/fcm/v1/market

book~{instrument_name}
Order book (L2). Subscribe with channel e.g. ["book~BTCUSD-PERP"].

Request

Body

required
    id integerrequired

    Request id

    method stringrequired

    Possible values: [subscribe]

    params objectrequired
    channels string[]required

    e.g. ["book~BTCUSD-PERP"]

    nonce integerrequired

    Current timestamp in milliseconds

WebSocket response
Schema
    id int64
    method string
    code int32
    result object
    instrument_name string
    subscription string
    channel string
    data object[]
  • Array [
  • asks array[]

    Ask levels (snapshot).

    bids array[]

    Bid levels (snapshot).

    t int64

    Timestamp (snapshot), ms, e.g. "1771761038000".

    tt int64

    Timestamp (snapshot), ms, e.g. "1771761038000".

    u int64

    Sequence (snapshot).

    update object

    Delta; has asks/bids.

    pu int64

    Previous sequence (delta).

  • ]