Channels
Subaccount trades
Channel name: {subaccount_id}.trades. Private channel (requires authentication) that streams your subaccount’s own trade fills as they occur, where is the numeric subaccount identifier.
WSS
/
v3
/
ws
Messages
{
"id": 1,
"method": "subscribe",
"params": {
"channels": [
"orderbook.ETH-PERP.10.20"
]
}
}No examples found{
"batch_status": "<string>",
"direction": "<string>",
"expected_rebate": "<string>",
"extra_fee": "<string>",
"index_price": "<string>",
"instrument_name": "<string>",
"is_transfer": true,
"label": "<string>",
"liquidity_role": "<string>",
"mark_price": "<string>",
"op_uuid": "<string>",
"order_id": "<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>",
"tx_hash": "<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.
subaccountTradesNotification
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{
"batch_status": "<string>",
"direction": "<string>",
"expected_rebate": "<string>",
"extra_fee": "<string>",
"index_price": "<string>",
"instrument_name": "<string>",
"is_transfer": true,
"label": "<string>",
"liquidity_role": "<string>",
"mark_price": "<string>",
"op_uuid": "<string>",
"order_id": "<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>",
"tx_hash": "<string>"
}