撤单
DELETE/api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange={exchange}撤销已有订单。
路径参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
acc_id | string | 是 | 业务账户 ID。 |
order_id | string | 是 | 订单 ID。 |
请求参数
| 参数 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
exchange | string | 查询 | 是 | 交易所。可选值:US、SEHK、SGX、SSE、SZSE、JP、CA 等 |
请求示例
bash
curl -X DELETE 'https://webapi.moomoo.com/api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange=US' \
-H 'Authorization: Bearer <AccessToken>' | jq响应示例
json
{
"s": "ok"
}失败响应:
json
{
"s": "error",
"errcode": -1200,
"errmsg": "Error message."
}