Messages
{
"type": "<string>",
"sid": 123,
"msg": {
"order_id": "<string>",
"user_id": "<string>",
"client_order_id": "<string>",
"ticker": "<string>",
"side": "<string>",
"price": "<string>",
"fill_count": "<string>",
"remaining_count": "<string>",
"self_trade_prevention_type": "<string>",
"order_group_id": "<string>",
"expiration_ts_ms": 123,
"last_updated_ts_ms": 123,
"last_update_reason": "<string>",
"subaccount_number": 123,
"order_source": "<string>"
},
"sending_ts_ms": 123
}WebSockets
User Orders
Private order created/updated notifications for the authenticated user on the margin exchange.
Requirements:
- authenticated connection
- market specification optional via
market_tickers - supports
update_subscriptionwithadd_marketsanddelete_markets
WSS
user_orders
Messages
{
"type": "<string>",
"sid": 123,
"msg": {
"order_id": "<string>",
"user_id": "<string>",
"client_order_id": "<string>",
"ticker": "<string>",
"side": "<string>",
"price": "<string>",
"fill_count": "<string>",
"remaining_count": "<string>",
"self_trade_prevention_type": "<string>",
"order_group_id": "<string>",
"expiration_ts_ms": 123,
"last_updated_ts_ms": 123,
"last_update_reason": "<string>",
"subaccount_number": 123,
"order_source": "<string>"
},
"sending_ts_ms": 123
}apiKey
type:apiKey
API key authentication required for margin WebSocket connections.
User Order Update
type:object
Private margin order create/update notifications