{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"trade_seq": 30289432,
"trade_id": "48079254",
"timestamp": 1590484156350,
"tick_direction": 0,
"state": "filled",
"reduce_only": false,
"price": 8954,
"post_only": false,
"order_type": "market",
"order_id": "4008965646",
"matching_id": null,
"mark_price": 8952.86,
"liquidity": "T",
"instrument_name": "BTC-PERPETUAL",
"index_price": 8956.73,
"fee_currency": "BTC",
"fee": 0.00000168,
"direction": "sell",
"amount": 20
},
{
"trade_seq": 30289433,
"trade_id": "48079255",
"timestamp": 1590484156350,
"tick_direction": 1,
"state": "filled",
"reduce_only": false,
"price": 8954,
"post_only": false,
"order_type": "market",
"order_id": "4008965646",
"matching_id": null,
"mark_price": 8952.86,
"liquidity": "T",
"instrument_name": "BTC-PERPETUAL",
"index_price": 8956.73,
"fee_currency": "BTC",
"fee": 0.00000168,
"direction": "sell",
"amount": 20
}
]
}User trade notifications for a specific instrument.
Receive private trade events for your account for the given instrument. The interval controls how frequently events are aggregated.
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"trade_seq": 30289432,
"trade_id": "48079254",
"timestamp": 1590484156350,
"tick_direction": 0,
"state": "filled",
"reduce_only": false,
"price": 8954,
"post_only": false,
"order_type": "market",
"order_id": "4008965646",
"matching_id": null,
"mark_price": 8952.86,
"liquidity": "T",
"instrument_name": "BTC-PERPETUAL",
"index_price": 8956.73,
"fee_currency": "BTC",
"fee": 0.00000168,
"direction": "sell",
"amount": 20
},
{
"trade_seq": 30289433,
"trade_id": "48079255",
"timestamp": 1590484156350,
"tick_direction": 1,
"state": "filled",
"reduce_only": false,
"price": 8954,
"post_only": false,
"order_type": "market",
"order_id": "4008965646",
"matching_id": null,
"mark_price": 8952.86,
"liquidity": "T",
"instrument_name": "BTC-PERPETUAL",
"index_price": 8956.73,
"fee_currency": "BTC",
"fee": 0.00000168,
"direction": "sell",
"amount": 20
}
]
}The name of the instrument
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?