Skip to content

Get Order Detail

Description

Get order detail

HTTP Request

  • GET /open/api/order_info

Request Parameters

ParameterTypeRequiredDescription
api_keyStringYesthe key is in the user api management
timeLongYesit is the current timestamp
signStringYesthe string is generated according to signature rule
symbolStringYescoin pair, example: btcusdt
order_idLongNoOrder ID
Either order_id or clientOrderId is required
clientOrderIdStringNoClient 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

ParameterTypeDescription
trade_listList<Object>trading records list
order_infoObjectorder detail
>volumeTypeIntegerorder volume type, 1 amount value volume, 2 base coin amount volume
>sideStringorder side: BUY, SELL
>total_priceStringtotal price
>feeDecimalfee
>clientOrderIdStringClient order ID
The default value is "0" if clientOrderId is not set
>created_atLongcreate time
>deal_priceDecimaldeal price
>avg_priceStringaverage price
>countCoinStringquote coin
>sourceIntegerorder source:1web,2app,3api
>order_info.typeIntegerorder type: 1 limit,2 market
>side_msgStringorder side message
>volumeStringorder volume
>priceStringthe price of limit order
>source_msgStringorder source message
>status_msgStringorder status message
>deal_volumeStringdeal volume
>fee_coinStringfee coin
>idLongorder id
>remain_volumeStringremain volume
>baseCoinStringbase coin
>statusIntegerorder status: 0 initial, 1 new, 2 filled, 3 partial filled, 4 canceled, 5 pending for cancel, 6 expired
>ctimeLongcreate 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

CodeDescription
0success
1system error
2parameters error
8fail to cancel order
9the trading was froze
22the order don't exist
100004illegal parameter
100005illegal sign
100007illegal ip address
100008the request time is expired