Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "private/subscribe",
"params": {
"channels": [
"user.combo_trades.future.USDC.100ms"
]
}
}{
"data": [
{
"amount": 10,
"api": false,
"direction": "sell",
"fee": 0,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-FS-2SEP22_PERP",
"legs": [
{
"amount": 10,
"api": false,
"combo_id": "BTC-FS-2SEP22_PERP",
"combo_trade_id": "1154",
"direction": "buy",
"fee": 5e-8,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 20220.61,
"matching_id": null,
"mmp": false,
"order_id": "720078",
"order_type": "limit",
"post_only": false,
"price": 20008.5,
"profit_loss": 0,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 2,
"timestamp": 1661867454335,
"trade_id": "1156",
"trade_seq": 179
},
{
"amount": 10,
"api": false,
"combo_id": "BTC-FS-2SEP22_PERP",
"combo_trade_id": "1154",
"direction": "sell",
"fee": 5e-8,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-2SEP22",
"liquidity": "T",
"mark_price": 20988.21,
"matching_id": null,
"mmp": false,
"order_id": "720077",
"order_type": "limit",
"post_only": false,
"price": 21200.32,
"profit_loss": 0,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 0,
"timestamp": 1661867454335,
"trade_id": "1155",
"trade_seq": 159
}
],
"liquidity": "T",
"mark_price": 767.6,
"matching_id": null,
"mmp": false,
"order_id": "720074",
"order_type": "limit",
"post_only": false,
"price": 1191.82,
"profit_loss": null,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 2,
"timestamp": 1661867454334,
"trade_id": "1154",
"trade_seq": 39
}
]
}User
user.combo_trades.(kind).(currency).(interval)
User trade notifications across all combo instruments for a given kind and currency.
Trades include a legs field describing the underlying legs. The interval controls aggregation frequency.
WSS
user.combo_trades.(kind).(currency).(interval)
Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "private/subscribe",
"params": {
"channels": [
"user.combo_trades.future.USDC.100ms"
]
}
}{
"data": [
{
"amount": 10,
"api": false,
"direction": "sell",
"fee": 0,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-FS-2SEP22_PERP",
"legs": [
{
"amount": 10,
"api": false,
"combo_id": "BTC-FS-2SEP22_PERP",
"combo_trade_id": "1154",
"direction": "buy",
"fee": 5e-8,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 20220.61,
"matching_id": null,
"mmp": false,
"order_id": "720078",
"order_type": "limit",
"post_only": false,
"price": 20008.5,
"profit_loss": 0,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 2,
"timestamp": 1661867454335,
"trade_id": "1156",
"trade_seq": 179
},
{
"amount": 10,
"api": false,
"combo_id": "BTC-FS-2SEP22_PERP",
"combo_trade_id": "1154",
"direction": "sell",
"fee": 5e-8,
"fee_currency": "BTC",
"index_price": 20332.44,
"instrument_name": "BTC-2SEP22",
"liquidity": "T",
"mark_price": 20988.21,
"matching_id": null,
"mmp": false,
"order_id": "720077",
"order_type": "limit",
"post_only": false,
"price": 21200.32,
"profit_loss": 0,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 0,
"timestamp": 1661867454335,
"trade_id": "1155",
"trade_seq": 159
}
],
"liquidity": "T",
"mark_price": 767.6,
"matching_id": null,
"mmp": false,
"order_id": "720074",
"order_type": "limit",
"post_only": false,
"price": 1191.82,
"profit_loss": null,
"reduce_only": false,
"risk_reducing": false,
"state": "filled",
"tick_direction": 2,
"timestamp": 1661867454334,
"trade_id": "1154",
"trade_seq": 39
}
]
}Subscription Request
type:object
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Subscription Notification Data
type:object
Server sends subscription notification data
Was this page helpful?
⌘I