Trade (422)
Channel trade, event <PAIR> (for example BTCUSDT). One message per execution.
Subscribe with message type 151.
[422, {
"type": 422, "channel": "trade", "event": "BTCUSDT",
"D": "1790168707937", "I": "101963842125958698",
"A": "0.01170258", "P": "85400", "PS": "BTCUSDT", "S": 0
}]
| Code | Meaning |
|---|---|
D | Timestamp, milliseconds since epoch (string) |
I | Trade id (string) |
A | Amount |
P | Price |
PS | Pair symbol |
S | Side - 0 buy, 1 sell |
A and P carry up to 10 decimal places, and A is always positive regardless of side.
S is the taker's side: buy means the buyer took liquidity. Get Trades uses the same convention.