Historical Delegate List
Address/openApi/entrust/historyList
Receive Parameters
need
Submission Method: get
Example
curl -d /openApi/entrust/historyList
Submission Parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
symbol | No | string | Trading pair (mandatory for the current trading pair, not required for all trading pairs) | |
from | No | int | 122 | Starting order_sn for query |
direct | No | string | prev | Query direction (default prev), prev backwards, time (or ID) in descending order; next forwards, time (or ID) in ascending order. (For example, a series of numbers: 1, 2, 3, 4, 5. from=4, prev has 3, 2, 1; next only has 5) |
limit | No | int | 20 | Number of results to return per page, default is 20, maximum is 100 (refer to the pagination section for details) |
Return Parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
errno | Yes | int | 0 | Status code |
errmsg | Yes | success | success | Status Information |
result | Yes | list | See example | List |
result Parameter Explanation
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
order_id | Yes | integer | Order ID | |
order_sn | Yes | string | Order Number | |
symbol | No | string | Trading Pair | |
ctime | Yes | string | Order Time | |
type | Yes | int | 1 | Order Type: 1=Market, 2=Limit |
side | Yes | string | buy | Order direction: buy/sell |
price | Yes | String | Price: 0 for market price(type=1) | |
number | Yes | String | 3.12 | Order Quantity: For market buy orders (type=1, side=buy), it should be 0 |
total_price | Yes | String | Total order amount: 0 for market sell orders (type=1, side=sell) | |
deal_number | Yes | String | Filled Amount | |
deal_price | Yes | String | Average executed price | |
status | Yes | int | 1 | Status: 1=Pending, 2=Partially Filled, 3=Filled, 4=Cancelling, 5=Partially Cancelled, 6=Cancelled |
Return Example
JSON
{
"errno":0,
"errmsg":"success",
"result":[
{
"order_id":121,
"order_sn":"BL123456789987523",
"symbol":"MCO-BTC",
"ctime":"2018-10-02 10:33:33",
"type":"2",
"side":"buy",
"price":"0.123456",
"number":"1.0000",
"total_price":"0.123456",
"deal_number":"0.00000",
"deal_price":"0.00000",
"status":1
},
{
"order_id":122,
"order_sn":"SL123456789987523",
"symbol":"MCO-BTC",
"ctime":"2018-10-02 10:33:33",
"type":"2",
"side":"sell",
"price":"0.123456",
"number":"1.0000",
"total_price":"0.123456",
"deal_number":"0.00000",
"deal_price":"0.00000",
"status":1
},
{
"order_id":123,
"order_sn":"BM123456789987523",
"symbol":"MCO-BTC",
"ctime":"2018-10-02 10:33:33",
"type":"1",
"side":"buy",
"price":"0",
"number":"0",
"total_price":"1",
"deal_number":"0.00000",
"deal_price":"0.00000",
"status":1
},
{
"order_id":124,
"order_sn":"SM123456789987523",
"symbol":"MCO-BTC",
"ctime":"2018-10-02 10:33:33",
"type":"1",
"side":"sell",
"price":"0",
"number":"1.0000",
"total_price":"0",
"deal_number":"0.00000",
"deal_price":"0.00000",
"status":1
}
]
}