Cancel perp orders
POST /v1/trading-gateway/cancel-orders — Batch cancel by `{ symbol, orderId }`. Body: `{ cancels: { symbol: string, orderId: string }[], subAccountId?: string }`
POST /v1/trading-gateway/cancel-orders
Batch cancel by { symbol, orderId }. Body: { cancels: { symbol: string, orderId: string }[], subAccountId?: string }. Returns the list of cancelled order ids plus the upstream raw_data for audit.
| Method | POST |
| Path | /v1/trading-gateway/cancel-orders |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | perps |
Request body
{ "cancels": [{ "symbol": "BTC", "orderId": "ord_abc" }], "subAccountId": "sub_hl_default" }Response body
{ "cancelled_order_ids": ["ord_abc"], "raw_data": { } }