Skip to main content
Refer to Websocket for establishing the websocket connection.

Params

{
    "method": "subscribe",
    "params": {
        "source": "trades",
        "symbol": "SOL"
    }
}

Stream

{
  "channel": "trades",
  "data": [
    {
      "h": 80062522,
      "s": "BTC",
      "a": "0.00001",
      "p": "89471",
      "d": "close_short",
      "tc": "normal",
      "t": 1765018379085,
      "li": 1559885104,
      "it": 0
    }
  ]
}
FieldTypeDescription
’h’integerHistory ID
’s’stringSymbol
’a’decimal stringAmount
’p’decimal stringPrice
’d’string

Trade side

open_long

open_short

close_long

close_short

’tc’string

Trade cause

normal market_liquidation backstop_liquidation settlement insolvency_liquidation game_settlement fulfill_rfq

’t’numberTimestamp in milliseconds
’li’numberExchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift.
‘it’integerInstrument type