order_history
API shows the user's completed orders.
1. Request
param | type | description |
---|---|---|
type | string | 'subscribe' | 'unsubscribe' |
channel | string | 'order_history' |
// request
{
"type": "subscribe",
"channel": 'order_history'
}
2. Responses
param | type | description |
---|---|---|
channel | string | 'order_history' |
result | ORDER_HISTORY[] | Array of ORDER_HISTORY. ORDER_HISTORY type is described below. |
reset | boolean | true: sended with initial data |
ORDER_HISTORY type
column | type | meaning |
---|---|---|
id | text | specific id for new order |
user_id | text | user id whom makes order |
market_id | text | requested market_id |
side | text | Either "buy" or "sell" |
type | text | Either "limit" or "market" |
quantity | text | quantity |
limit_price | text | If type is limit, then order's price. |
time_in_force | text | selected time_in_force. |
filled_cost | string | The amount of filled cost. It is for market. |
filled_quantity | string | The amount of filled quantity. |
open_quantity | string | The amount of open quantity. |
cancelled_quantity | string | The amount of cancelled quantity. |
status | string | should be 'open'. |
time | Date | Order time. |
client_order_id | string | client_order_id. |