获取当前计划委托
限速规则 20次/1s (UID)
描述
获取当前计划委托
HTTP请求
- GET /api/v2/spot/trade/current-plan-order
请求示例
curl "https://api.bitget.com/api/v2/spot/trade/current-plan-order?symbol=BTCUSDT&limit=10" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"
请求参数
| 参数名 | 参数类型 | 是否必须 | 描述 |
|---|---|---|---|
| symbol | String | 否 | 交易对名称,如BTCUSDT |
| limit | String | 否 | 分页, 默认20,最大值100 |
| idLessThan | String | 否 | 最后ID,分页需要 |
| startTime | String | 否 | 开始时间(毫秒) 开始和结束时间间隔应小于90天 |
| endTime | String | 否 | 结束时间(毫秒) 开始和结束时间间隔应小于90天 |
返回示例
{
"code": "00000",
"msg": "success",
"requestTime": 1668134581005,
"data": {
"nextFlag": false,
"idLessThan": "1",
"orderList": [
{
"orderId": "1",
"clientOid": "xxx001",
"symbol": "TRXUSDT",
"size": "151",
"executePrice": "0.041572",
"triggerPrice": "0.041572",
"status": "not_trigger",
"orderType": "limit",
"side": "buy",
"planType":"amount",
"triggerType": "fill_price",
"enterPointSource": "API",
"uTime": "1668134576563",
"cTime": "1668134576563"
}
]
}
}
返回参数
| 返回字段 | 参数类型 | 字段说明 |
|---|---|---|
| orderId | String | 订单ID |
| clientOid | String | 客户自定义ID |
| symbol | String | 交易对名称 |
| triggerPrice | String | 触发价格 |
| orderType | String | 订单类型limit 限价单,market 市价单 |
| executePrice | String | 执行价格 |
| planType | String | 委托类型amount 数量委托total 交易额委托 |
| size | String | 购买数量placeType=amount时, 计价单位是base coin(左币)placeType=total时, 计价单位是quote coin(右币) |
| status | String | 状态live: 待执行executing: 下单中 |
| side | String | 交易方向 交易方向 buy: 买入sell: 卖出 |
| triggerType | String | 触发类型fill_price成交价格mark_price标记价格 |
| enterPointSource | String | 订单来源WEB: WEB客户端IOS: IOS客户端ANDROID: Andriod客户端API: API客户端SYS: 系统, 通常为爆仓 |
| cTime | String | 创建时间,Unix毫秒时间戳,例如1690196141868 |
| uTime | String | 更新时间,Unix毫秒时间戳,例如1690196141868 |