Skip to main content

trade.{instrument_name}

CHANNEL 

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

trade.{instrument_name}
Public trades. Subscribe with channels e.g. ["trade.BTCUSD-PERP"]. Returns last 50 trades on subscribe.

Request

Body

required
    id integerrequired

    Request id

    method stringrequired

    Possible values: [subscribe]

    params objectrequired
    channels string[]required

    e.g. ["trade.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 [
  • d string

    Trade ID

    t int64

    Trade timestamp in milliseconds, e.g. "1771761038000".

    p decimal

    Trade price

    q decimal

    Trade quantity

    s WsOrderSide (string)

    Possible values: [BUY, SELL]

    BUY or SELL

    i string

    Instrument name e.g. BTCUSD-PERP

    m int64

    Trade match ID

  • ]