Welcome to the new WEEX API documentation. Looking for the previous version?Switch to the legacy docs
WEEX

Get Order History (USER_DATA)

  • GET /capi/v3/order/history

Weight(IP): 10

Request parameters

ParameterTypeRequired?Description
symbolStringNoFilter by trading pair.
limitIntegerNoNumber of records per page, 1-100. Default 100.
startTimeLongNoStart time (ms). Must be less than or equal to endTime.
endTimeLongNoEnd time (ms). Must be within 90 days of startTime.
pageIntegerNoPage index starting from 0. Default 0.
Request example
PowerShellCode
curl "https://api-contract.weex.com/capi/v3/order/history?symbol=BTCUSDT&limit=100&page=0" \ -H "ACCESS-KEY:*******" \ -H "ACCESS-SIGN:*******" \ -H "ACCESS-PASSPHRASE:*****" \ -H "ACCESS-TIMESTAMP:1659076670000" \
Response parameters

Returns an array of objects identical to Get Order Info.

Response example
JSONCode
[ { "orderId": 702345678901234567, "symbol": "BTCUSDT", "side": "BUY", "positionSide": "LONG", "status": "FILLED", "type": "LIMIT", "time": 1764400000000, "price": "65000", "origQty": "0.01", "executedQty": "0.01", "avgPrice": "64999.5", "updateTime": 1764400001234, "clientOrderId": "hist-1", "cumQuote": "649.995", "timeInForce": "GTC" } ]