取消永续订单
POST /v1/trading-gateway/cancel-orders:按 `{ symbol, orderId }` 批量取消订单。
POST /v1/trading-gateway/cancel-orders
按 { symbol, orderId } 批量取消订单。Body:{ cancels: { symbol: string, orderId: string }[], subAccountId?: string }。返回已取消订单 ID 列表及用于审计的上游 raw_data。
确认回执中的订单 id 必须属于本次请求;安全整数 id 转为字符串,重复 id 去重。缺失、失败或不匹配的回执返回 502,不报告成功结算。撤单回执不能证明此前没有部分成交,支出记录需要等待对账。结果未确认时应先刷新订单,再决定是否重试。
| 方法 | POST |
| 路径 | /v1/trading-gateway/cancel-orders |
| 认证 | 设置 GATEWAY_AUTH_TOKEN 时需要 Authorization: Bearer <token> |
| 类别 | perps |
请求体
{ "cancels": [{ "symbol": "BTC", "orderId": "ord_abc" }], "subAccountId": "sub_hl_default" }响应体
{ "cancelled_order_ids": ["ord_abc"], "raw_data": { } }