Skip to main content
POST
Cancel multiple orders
按 ID 批量取消订单。结果与输入的 sessionIDs 数组按位置对应,可能同时包含成功取消和单笔失败。

请求

POST /session/cancelMultiple
array
必填
要取消的订单 ID 数组。每个 ID 必须是有效的 ObjectID — 若其中任何一个格式错误,整个请求会以 400 失败。

响应

array
按单取消结果。形态与 取消一笔订单 相同。失败时,条目包含 { success: false, reason: "..." }(因无效 ID / 未找到 / 非本人而被拒绝时没有 sessionID 字段)。

示例

错误

授权

Authorization
string
header
必填

Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.

请求体

application/json
sessionIDs
string[]
必填

响应

Per-order cancel results

data
object[]