trades
Public real-time trade stream.
Outcome markets reuse this channel: pass the numeric instrument_id as
coin. This is the public tape for one market. The node also supports the
Outcome-specific outcomeTrades batch/user subscription, but the current
public web client uses this single-instrument stream.
tradesDrive the public trade tape for one instrument.
{
"method": "subscribe",
"type": "trades",
"subscription": {
"type": "trades",
"coin": "4"
}
}"trades"Optional filter: only trades where this address is taker or maker are pushed. Omit or "" for all trades. Use the account address, not an agent's.
"trades"Trading pair symbol.
Transaction hash, hex, 0x-prefixed.
Trade price.
Taker side: "B" = buy, "A" = sell.
"A""B"Trading pair symbol (duplicate of coin, kept for backward compatibility).
Trade size.
Trade id.
Trade timestamp, milliseconds.
[takerAddress, makerAddress].
Instrument's external id. Omitted on legacy payloads.
Realized PnL closed by the maker in this trade.
Fee charged to the maker.
Whether the maker's order was reduce-only.
Realized PnL closed by the taker in this trade.
Fee charged to the taker.
Whether the taker's order was reduce-only.
{
"channel": "trades",
"data": [
{
"coin": "4",
"symbol": "",
"instrumentId": 9001,
"side": "B",
"px": "0",
"sz": "0",
"time": 1700000000000,
"hash": "",
"tid": 0,
"users": [
""
],
"takerFee": "",
"makerFee": "",
"takerClosedPnl": "",
"makerClosedPnl": "",
"takerReduceOnly": false,
"makerReduceOnly": false
}
]
}