Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.orders.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"time_in_force": "good_til_cancelled",
"replaced": false,
"reduce_only": false,
"price": 10460.43,
"post_only": false,
"original_order_type": "market",
"order_type": "limit",
"order_state": "open",
"order_id": "4",
"max_show": 200,
"last_update_timestamp": 1581507159533,
"label": "",
"is_rebalance": false,
"is_liquidation": false,
"instrument_name": "BTC-PERPETUAL",
"filled_amount": 0,
"direction": "buy",
"creation_timestamp": 1581507159533,
"average_price": 0,
"api": false,
"amount": 200
}
]
}User
user.orders.(instrument_name).(interval)
User order updates for a specific instrument (aggregated).
Use this channel to receive private order updates for the given instrument, aggregated according to interval.
Messages
{
"jsonrpc": "2.0",
"method": "public/subscribe",
"id": 42,
"params": {
"channels": [
"user.orders.BTC-PERPETUAL.100ms"
]
}
}{
"data": [
{
"time_in_force": "good_til_cancelled",
"replaced": false,
"reduce_only": false,
"price": 10460.43,
"post_only": false,
"original_order_type": "market",
"order_type": "limit",
"order_state": "open",
"order_id": "4",
"max_show": 200,
"last_update_timestamp": 1581507159533,
"label": "",
"is_rebalance": false,
"is_liquidation": false,
"instrument_name": "BTC-PERPETUAL",
"filled_amount": 0,
"direction": "buy",
"creation_timestamp": 1581507159533,
"average_price": 0,
"api": false,
"amount": 200
}
]
}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