open_order websocket API shows the user's open orders.

1. Request

'type' should be either 'subscribe' or 'unsubscribe'
'channel' should be 'open_order'

paramtypedescription
typestring'subscribe' | 'unsubscribe'
channelstring'open_order'
// request

{
  "type": "subscribe",
  "channel": 'open_order'
}

or

// request

{
  "type": "unsubscribe",
  "channel": 'open_order'
}

2. Responses

paramtypedescription
channelstringIt will return 'open_order'
dataOPEN_ORDER[]Array of OPEN_ORDER.
OPEN_ORDER type is described below.

OPEN_ORDER type

columntypemeaning
idstringspecific id for the new order
user_idstringuser id of the user who makes the order
market_idstringrequested market_id
sidestring"buy" or "sell"
typestring"limit" or "market"
quantitystringquantity
limit_pricestringIf type is limit, then order's price.
time_in_forcestringselected time_in_force.
filled_coststringThe amount of filled cost. It is for market.
filled_quantitystringThe amount of filled quantity.
open_quantitystringThe amount of open quantity.
cancelled_quantitystringThe amount of cancelled quantity.
statusstringshould be 'open'.
timeDateOrder time.
client_order_idstringclient_order_id.
coststringcost of the transaction

❗️

Error

'type' field in the request is neither 'subscribe' nor 'unsubscribe'.