批量撤單


//Request
{
    "orderIdsList":
    [
        "80465574458560512",
        "80465575289094144"
    ],
    "clientOidsList":
    [
        {
            "symbol": "XBTUSDTM",
            "clientOid": "clientOid123"
        },
        {
            "symbol": "ETHUSDTM",
            "clientOid": "clientOid321"
        }
    ]
}

//Response
{
    "code": "200000",
    "data":
    [
        {
            "orderId": "80465574458560512",
            "clientOid": null,
            "code": "200",
            "msg": "success"
        },
        {
            "orderId": "80465575289094144",
            "clientOid": null,
            "code": "200",
            "msg": "success"
        }
    ]
}

使用此接口,可批量撤銷訂單(不包括止損單/條件訂單)。

支持按orderId或clientOid批量撤單,儅同時使用orderIdsList和clientOidsList时,以orderIdsList爲準,每次最多支持撤銷10個訂單

使用orderId撤單時,response會返回orderId字段

使用clientOid撤單時,response會返回clientOid字段

HTTP請求

DELETE /api/v1/orders/multi-cancel

示例

DELETE /api/v1/orders/multi-cancel

API權限

此接口需要合約交易權限

請求URL

此接口支持合約URL

頻率限制

合约类权重:20

參數
參數 數據類型 是否必須 含義
symbol String 指定symbol,儅使用clientOidsList撤單時,此參數必填
orderIdsList String orderIdsListclientOidsList 二選一)
clientOidsList String orderIdsListclientOidsList 二選一)
返回值
參數 含義
orderId 訂單ID
clientOid 用戶自定義訂單ID