Skip to content

Get All Orders

Description

Get all orders

HTTP Request

  • GET /open/api/v2/all_order

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
pageSizeIntegerNothe size of page, default value is ten
pageIntegerNothe number of page, default value is one
symbolStringYescoin pair, example: btcusdt
startDateStringNostart date, the format is "yyyy-MM-dd mm:hh:ss"
endDateStringNoend date, the format is "yyyy-MM-dd mm:hh:ss"

Request Example

http
curl 'https://openapi.100ex.com/open/api/v2/all_order?api_key=*********&time=1736303665297&sign=*********&symbol=btcusdt&startDate=&endDate=&pageSize=&page='

Response Parameters

ParameterTypeDescription
countIntegernumber of order list
orderListList<Object>order list
>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
>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

Response Example

json
{
    "code": "0",
    "msg": "suc",
    "data": {
        "count": 1,
        "orderList": [
            {
                "volumeType": 2,
                "side": "BUY",
                "total_price": "9923.0000000000",
                "fee": 0E-10,
                "clientOrderId": "0",
                "created_at": 1736216666237,
                "deal_price": 0E-16,
                "avg_price": "0.0000000000",
                "countCoin": "USDT",
                "source": 3,
                "type": 1,
                "side_msg": "买入",
                "volume": "0.1000000000",
                "price": "99230.0000000000",
                "source_msg": "API",
                "status_msg": "未成交",
                "deal_volume": "0.0000000000",
                "fee_coin": "BTC",
                "id": 410742596395073536,
                "remain_volume": "0.1000000000",
                "baseCoin": "BTC",
                "status": 0
            }
        ]
    },
    "message": null,
    "traceId": null
}

Status Code

CodeDescription
0success
1system error
100004illegal parameter
100005illegal sign
100007illegal ip address
100008the request time is expired
210016the query time pried is over range