全部撤單

此接口,可以取消所有狀態爲open的訂單,返回值是是已取消訂單的ID列表。

HTTP請求

DELETE /api/v1/orders

請求示例

DELETE /api/v1/orders?symbol=ETH-BTC&tradeType=TRADE
DELETE /api/v1/orders?symbol=ETH-BTC&tradeType=MARGIN_ISOLATED_TRADE

{
    "cancelledOrderIds":[

        "5c52e11203aa677f33e493fb",
        "5c52e12103aa677f33e493fe",
        "5c52e12a03aa677f33e49401",
        "5c52e1be03aa677f33e49404",
        "5c52e21003aa677f33e49407",
        "5c6243cb03aa67580f20bf2f",
        "5c62443703aa67580f20bf32",
        "5c6265c503aa676fee84129c",
        "5c6269e503aa676fee84129f",
        "5c626b0803aa676fee8412a2"
    ]
}
API權限

此接口需要幣幣交易權限槓桿交易權限

請求URL

此接口支持現貨URL

頻率限制

現貨類權重:20

請求參數
請求參數 類型 是否必須 含義
symbol String 取消指定交易對的open訂單
tradeType String 取消指定交易類型的open訂單:TRADE(現貨交易), MARGIN_TRADE(全倉槓桿交易), MARGIN_ISOLATED_TRADE(逐倉槓桿交易), 默認爲取消TRADE(現貨交易)訂單
返回值
字段 含義
cancelledOrderIds 取消的訂單id