order_history API shows the user's completed orders.

1. Request

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

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

2. Responses

paramtypedescription
channelstring'order_history'
resultORDER_HISTORY[]Array of ORDER_HISTORY.
ORDER_HISTORY type is described below.
resetbooleantrue: sended with initial data

ORDER_HISTORY type

columntypemeaning
idtextspecific id for new order
user_idtextuser id whom makes order
market_idtextrequested market_id
sidetextEither "buy" or "sell"
typetextEither "limit" or "market"
quantitytextquantity
limit_pricetextIf type is limit, then order's price.
time_in_forcetextselected 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.