{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.trades.(kind).(currency).100ms"
]
}
}{
"data": [
{
"trade_seq": 74405,
"trade_id": "48079262",
"timestamp": 1590484255886,
"tick_direction": 2,
"state": "filled",
"reduce_only": false,
"price": 8947,
"post_only": false,
"order_type": "limit",
"order_id": "4008978075",
"matching_id": null,
"mark_price": 8970.03,
"liquidity": "T",
"instrument_name": "BTC-25SEP20",
"index_price": 8953.53,
"fee_currency": "BTC",
"fee": 0.00049961,
"direction": "sell",
"amount": 8940
}
]
}User trade notifications across all instruments for a given kind and currency.
Receive a consolidated stream of your private trades across all instruments matching the specified kind and currency. The interval controls aggregation frequency.
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.trades.(kind).(currency).100ms"
]
}
}{
"data": [
{
"trade_seq": 74405,
"trade_id": "48079262",
"timestamp": 1590484255886,
"tick_direction": 2,
"state": "filled",
"reduce_only": false,
"price": 8947,
"post_only": false,
"order_type": "limit",
"order_id": "4008978075",
"matching_id": null,
"mark_price": 8970.03,
"liquidity": "T",
"instrument_name": "BTC-25SEP20",
"index_price": 8953.53,
"fee_currency": "BTC",
"fee": 0.00049961,
"direction": "sell",
"amount": 8940
}
]
}Instrument kind
Allowed values: future, option, spot, future_combo, option_combo
Currency code or any for all
Allowed values: BTC, ETH, USDC, USDT, EURR, any
Frequency of notifications. Events will be aggregated over this interval. The value raw means no aggregation will be applied (Please note that raw interval is only available to authorized users)
Allowed values: raw, 100ms, agg2
Client sends subscription request to subscribe to notification channel. Please refer to Notification page for more information.
Server sends subscription notification data
Was this page helpful?