Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "private/subscribe",
"params": {
"channels": [
"user.trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"amount": 20,
"direction": "sell",
"fee": 0.00000168,
"fee_currency": "BTC",
"index_price": 8956.73,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 8952.86,
"matching_id": null,
"order_id": "4008965646",
"order_type": "market",
"post_only": false,
"price": 8954,
"reduce_only": false,
"state": "filled",
"tick_direction": 0,
"timestamp": 1590484156350,
"trade_id": "48079254",
"trade_seq": 30289432
},
{
"amount": 20,
"direction": "sell",
"fee": 0.00000168,
"fee_currency": "BTC",
"index_price": 8956.73,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 8952.86,
"matching_id": null,
"order_id": "4008965646",
"order_type": "market",
"post_only": false,
"price": 8954,
"reduce_only": false,
"state": "filled",
"tick_direction": 1,
"timestamp": 1590484156350,
"trade_id": "48079255",
"trade_seq": 30289433
}
]
}User
user.trades.(instrument_name).(interval)
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.
WSS
user.trades.(instrument_name).(interval)
Messages
{
"id": 42,
"jsonrpc": "2.0",
"method": "private/subscribe",
"params": {
"channels": [
"user.trades.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"amount": 20,
"direction": "sell",
"fee": 0.00000168,
"fee_currency": "BTC",
"index_price": 8956.73,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 8952.86,
"matching_id": null,
"order_id": "4008965646",
"order_type": "market",
"post_only": false,
"price": 8954,
"reduce_only": false,
"state": "filled",
"tick_direction": 0,
"timestamp": 1590484156350,
"trade_id": "48079254",
"trade_seq": 30289432
},
{
"amount": 20,
"direction": "sell",
"fee": 0.00000168,
"fee_currency": "BTC",
"index_price": 8956.73,
"instrument_name": "BTC-PERPETUAL",
"liquidity": "T",
"mark_price": 8952.86,
"matching_id": null,
"order_id": "4008965646",
"order_type": "market",
"post_only": false,
"price": 8954,
"reduce_only": false,
"state": "filled",
"tick_direction": 1,
"timestamp": 1590484156350,
"trade_id": "48079255",
"trade_seq": 30289433
}
]
}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