{
"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
}
]
}Get notifications about the user’s trades in any instrument of a given kind and given currency.
{
"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
Currency code
Frequency of notifications
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?