Address
/openApi/entrust/detail
Receiving parameter
- Yes
Submit
- get
Example
curl -d /openApi/entrust/detail
Submit parameter
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
order_sn | Yes | String | Order No |
Return Parameter
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
errno |
Yes |
int | 0 | Status code |
errmsg | Yes | success | success | Status information |
result | Yes | list | See the example | List |
RESULT Parameter Instructions
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
entrust | Yes | string | See the example | Orders information |
trades | Yes | array | See the example | Orders list |
ENTRUST Parameter Instructions
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
order_id | Yes | integer | Order ID | |
order_sn | Yes | string | Order No | |
symbol | Yes | string | Trading pair | |
ctime | Yes | string | Entrusted time | |
type | Yes | int | 1 | Types:1=Market,2=Limit |
side | Yes | string | buy | Direction:buy/sell |
price | Yes | String | Price: Market price (type=1) is 0 | |
number | Yes | String | 3.12 | Quantity: Market price is 0 when buying (type=1, side=buy) |
total_price | Yes | String | Total: Market price is 0 when selling (type=1, side=sell) | |
deal_number | Yes | String | Quantities | |
deal_price | Yes | String | Price | |
status | Yes | int | 1 |
Status :1=Maker 2=Partial traded 3=Traded 4=Cancelling,5=Partial cancelled 6=Cancelled |
TRADES Parameter Instructions
ParamName | Y/N | Type | Example | Description |
---|---|---|---|---|
id | Yes | int | 11 | Deal ID |
ctime | Yes | string | Deal time | |
price | Yes | string | Price | |
number | Yes | string | Quantity | |
total_price | Yes | string | Trading volume | |
fee | Yes | string | Service fees |
Return Example
{
"errno": 0,
"errmsg": "success",
"result":{
"entrust":{
"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
},
"trades":[{
"id": 18,
"ctime":"2018-10-02 10:33:33",
"price":"0.123456",
"number":"1.0000",
"total_price":"0.123456",
"fee":"0.00001",
},{
"id": 19,
"ctime":"2018-10-02 10:33:33",
"price":"0.123456",
"number":"1.0000",
"total_price":"0.123456",
"fee":"0.00001",
}]
}
Comments
0 comments
Article is closed for comments.