Get History Orders
HTTP request Fetch order history list
- POST /api/v2/trade/history
Weight(IP): 10, Weight(UID): 10
Request parameters
| Parameter | Parameter type | Required? | Description | 
|---|---|---|---|
| symbol | String | Yes | Trading pair. For details, view: /products | 
| after | Long | No | Start timestamp (in milliseconds) | 
| before | Long | No | End timestamp (in milliseconds) | 
| pageIndex | Integer | No | Page number, starting from 0 (Default: 0) | 
| pageSize | Integer | No | Page size, must be greater than 0 and less than or equal to 100 (Default: 10) | 
Request example
curl -X POST "https://api-spot.weex.com/api/v2/trade/history" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*" \
   -H "ACCESS-PASSPHRASE:*" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "locale:zh-CN" \
   -H "Content-Type: application/json" \
   -d '{"symbol": "WXTUSDT_SPBL"}'
Response parameters
| Field Name | Type | Field Description | 
|---|---|---|
| accountId | String | Account ID | 
| symbol | String | Trading pair | 
| orderId | String | Order ID | 
| clientOrderId | String | Client order ID | 
| price | String | Order price | 
| quantity | String | Order quantity | 
| orderType | String | Order type | 
| side | String | Order side | 
| status | String | Order status | 
| latestFillPrice | String | Latest execution price | 
| maxFillPrice | String | Highest execution price | 
| minFillPrice | String | Lowest execution price | 
| fillQuantity | String | Filled quantity | 
| fillTotalAmount | String | Total filled amount | 
| cTime | String | Creation time | 
| uTime | String | Update time | 
Response example
{
  "code": "00000",
  "msg": "success",
  "requestTime": 1743755234949,
  "data": {
    "orderInfoResultList": [{
      "accountId": "590105411156181178",
      "symbol": "WXTUSDT_SPBL",
      "orderId": "602941812964852154",
      "clientOrderId": "202504040742105191743752530280",
      "price": "100.000000",
      "quantity": "10",
      "orderType": "limit",
      "side": "sell",
      "status": "open",
      "latestFillPrice": "0",
      "maxFillPrice": "0",
      "minFillPrice": "0",
      "fillQuantity": "0",
      "fillTotalAmount": "0",
      "cTime": "1743752530328",
      "uTime": "1743752530334"
    }],
    "nextPage": true,
    "totals": 0
  }
}