查询订单详情 (USER_DATA)
- GET
/api/v3/order
权重(IP): 2, 权重(UID): 2
请求参数
| 参数名 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| orderId | Long | 否 | 订单 ID。当未提供 origClientOrderId 时必填。 |
| origClientOrderId | String | 否 | 客户端自定义订单 ID。当未提供 orderId 时必填。 |
请求示例
curl "https://api-spot.weex.com/api/v3/order?orderId=702345678901234567" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*******" \
-H "ACCESS-PASSPHRASE:*****" \
-H "ACCESS-TIMESTAMP:1659076670000" \
返回参数
| 字段名 | 类型 | 说明 |
|---|---|---|
| symbol | String | 交易对名称。 |
| orderId | Long | 订单 ID。 |
| clientOrderId | String | 客户端自定义订单 ID。 |
| price | String | 订单价格。 |
| origQty | String | 原始委托数量。 |
| executedQty | String | 已成交数量。 |
| cummulativeQuoteQty | String | 已成交额(按计价币种)。 |
| status | String | 订单状态,例如 NEW、FILLED、CANCELED。 |
| timeInForce | String | 时效策略。 |
| type | String | 订单类型。 |
| side | String | 买卖方向,BUY 或 SELL。 |
| time | Long | 创建时间(毫秒)。 |
| updateTime | Long | 最近更新时间(毫秒)。 |
| isWorking | Boolean | 是否仍为活动委托。 |
返回示例
{
"symbol": "BTCUSDT",
"orderId": 702345678901234567,
"clientOrderId": "my-spot-order-001",
"price": "68900",
"origQty": "0.01",
"executedQty": "0.01",
"cummulativeQuoteQty": "689.00",
"status": "FILLED",
"timeInForce": "GTC",
"type": "LIMIT",
"side": "BUY",
"time": 1764506000456,
"updateTime": 1764506001556,
"isWorking": false
}