Get Order Detail
Description
Get order detail
HTTP Request
- GET /open/api/order_info
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | String | Yes | the key is in the user api management |
| time | Long | Yes | it is the current timestamp |
| sign | String | Yes | the string is generated according to signature rule |
| symbol | String | Yes | coin pair, example: btcusdt |
| order_id | Long | No | Order ID Either order_id or clientOrderId is required |
| clientOrderId | String | No | Client order ID Either order_id or clientOrderId is required |
Request Example
http
curl 'https://openapi.100ex.com/open/api/order_info?api_key=*********&time=1743917296900&sign=*********&symbol=BTCUSDT&symbol=btcusdt&clientOrderId=client000002'Response Parameters
| Parameter | Type | Description |
|---|---|---|
| trade_list | List<Object> | trading records list |
| order_info | Object | order detail |
| >volumeType | Integer | order volume type, 1 amount value volume, 2 base coin amount volume |
| >side | String | order side: BUY, SELL |
| >total_price | String | total price |
| >fee | Decimal | fee |
| >clientOrderId | String | Client order ID The default value is "0" if clientOrderId is not set |
| >created_at | Long | create time |
| >deal_price | Decimal | deal price |
| >avg_price | String | average price |
| >countCoin | String | quote coin |
| >source | Integer | order source:1web,2app,3api |
| >order_info.type | Integer | order type: 1 limit,2 market |
| >side_msg | String | order side message |
| >volume | String | order volume |
| >price | String | the price of limit order |
| >source_msg | String | order source message |
| >status_msg | String | order status message |
| >deal_volume | String | deal volume |
| >fee_coin | String | fee coin |
| >id | Long | order id |
| >remain_volume | String | remain volume |
| >baseCoin | String | base coin |
| >status | Integer | order status: 0 initial, 1 new, 2 filled, 3 partial filled, 4 canceled, 5 pending for cancel, 6 expired |
| >ctime | Long | create time |
Response Example
json
{
"code": "0",
"msg": "suc",
"data": {
"trade_list": [
{
"volume": "0.0119900000",
"feeCoin": "BTC",
"price": "83374.0200000000",
"fee": "0.0000239800",
"ctime": 1743917872734,
"deal_price": "999.6544998000",
"id": 26122002,
"type": null
}
],
"order_info": {
"volumeType": 1,
"side": "BUY",
"total_price": "1000",
"fee": 0.0000239800,
"clientOrderId": "client000002",
"created_at": 1743917872670,
"deal_price": 999.6544998000000000,
"avg_price": "83374.0200000000",
"countCoin": "USDT",
"source": 3,
"type": 2,
"side_msg": "Buy",
"volume": "1000",
"price": "0.0000000000",
"source_msg": "API",
"status_msg": "Fully filled",
"deal_volume": "0.0119900000",
"fee_coin": "BTC",
"id": 443043797320859648,
"remain_volume": "0.3455002",
"baseCoin": "BTC",
"tradeList": [
{
"volume": "0.0119900000",
"feeCoin": "BTC",
"price": "83374.0200000000",
"fee": "0.0000239800",
"ctime": 1743917872734,
"deal_price": "999.6544998000",
"id": 26122002,
"type": null
}
],
"status": 2
}
},
"message": null,
"traceId": null
}Status Code
| Code | Description |
|---|---|
| 0 | success |
| 1 | system error |
| 2 | parameters error |
| 8 | fail to cancel order |
| 9 | the trading was froze |
| 22 | the order don't exist |
| 100004 | illegal parameter |
| 100005 | illegal sign |
| 100007 | illegal ip address |
| 100008 | the request time is expired |
