Messages
{
"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
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.
Messages
{
"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
}
]
}instrument_name
type:string
required
The name of the instrument
interval
type:enum
required
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
Available options:
raw, 100ms, agg2Subscription 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