Channels
Trades by instrument
Channel name: trades.{instrument_name}. Public channel that streams the public trade tape for a single instrument, where is the market whose fills you want to follow.
WSS
/
v3
/
ws
Messages
{
"id": 1,
"method": "subscribe",
"params": {
"channels": [
"orderbook.ETH-PERP.10.20"
]
}
}No examples found{
"direction": "<string>",
"expected_rebate": "<string>",
"extra_fee": "<string>",
"index_price": "<string>",
"instrument_name": "<string>",
"liquidity_role": "<string>",
"mark_price": "<string>",
"quote_id": "<string>",
"realized_pnl": "<string>",
"realized_pnl_excl_fees": "<string>",
"rfq_id": "<string>",
"subaccount_id": 123,
"timestamp": 123,
"trade_amount": "<string>",
"trade_fee": "<string>",
"trade_id": "<string>",
"trade_price": "<string>",
"wallet": "<string>"
}subscribeRequest
type:object
Send to subscribe: list this channel's address (with the {param} segments filled, e.g. orderbook.ETH-PERP.10.20) in params.channels.
unsubscribeRequest
type:object
Send to unsubscribe: list the channel addresses to drop in params.channels, or omit it to unsubscribe from everything.
tradesByInstrumentNotification
type:object
Pushed as a JSON array; each element has the fields below.
Messages
{
"id": 1,
"method": "subscribe",
"params": {
"channels": [
"orderbook.ETH-PERP.10.20"
]
}
}No examples found{
"direction": "<string>",
"expected_rebate": "<string>",
"extra_fee": "<string>",
"index_price": "<string>",
"instrument_name": "<string>",
"liquidity_role": "<string>",
"mark_price": "<string>",
"quote_id": "<string>",
"realized_pnl": "<string>",
"realized_pnl_excl_fees": "<string>",
"rfq_id": "<string>",
"subaccount_id": 123,
"timestamp": 123,
"trade_amount": "<string>",
"trade_fee": "<string>",
"trade_id": "<string>",
"trade_price": "<string>",
"wallet": "<string>"
}