Trades

Streams all trades on the taker side as they occur in a chosen market.

Refer to Websocket for establishing the websocket connection.

Params

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

Stream

{
  "channel": "trades",
  "data": [
    {
      "u": "42trU9A5...",
      "h": 80062522,
      "s": "BTC",
      "a": "0.00001",
      "p": "89471",
      "d": "close_short",
      "tc": "normal",
      "t": 1765018379085,
      "li": 1559885104
    }
  ]
}
Field
Type
Description

'u'

string

Account address

'h'

integer

History ID

's'

string

Symbol

'a'

decimal string

Amount

'p'

decimal string

Price

'd'

string

Trade side

open_long

open_short

close_long

close_short

'tc'

string

Trade cause

normal market_liquidation backstop_liquidation settlement

't'

number

Timestamp in milliseconds

'li'

number

Exchange-wide nonce. Used to reliably determine exchange event ordering. Sequential and not subject to clock drift.

Last updated