查询单个订单
请求参数
参数名 | 类型 | 是否必填 | 默认值 | 描述 |
---|---|---|---|---|
orderId | number | 否 | N/A | 订单ID |
clientOrderId | string | 否 | N/A | 客户订单ID |
示例代码
Java
public String orderGet(){
}
Python
# Python 示例占位
响应示例
Response
{
"rc": 0,
"mc": "string",
"ma": [
{}
],
"result": {
"symbol": "BTC_USDT",
"orderId": "6216559590087220004",
"clientOrderId": "16559590087220001",
"baseCurrency": "string",
"quoteCurrency": "string",
"side": "BUY", // 订单方向: BUY, SELL
"type": "LIMIT", // 订单类型: LIMIT, MARKET
"timeInForce": "GTC", // 有效方式: GTC, IOC, FOK, GTX
"price": "40000",
"origQty": "2", // 原始数量
"origQuoteQty": "48000", // 原始金额
"executedQty": "1.2", // 已成交数量
"leavingQty": "string", // 待成交数量 (若订单被取消或拒绝则为0)
"tradeBase": "2", // 成交数量
"tradeQuote": "48000", // 成交金额
"avgPrice": "42350", // 平均成交价格
"fee": "string", // 手续费
"feeCurrency": "string", // 手续费币种
"state": "NEW", // 订单状态: NEW, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED
"time": 1655958915583, // 下单时间
"updatedTime": 1655958915583 // 最后更新时间
}
}