Skip to content

撤單 ​

DELETE /api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange={exchange}

撤銷已有訂單。

路徑參數 ​

參數類型必填說明
acc_idstring是業務賬戶 ID。
order_idstring是訂單 ID。

請求參數 ​

參數類型位置必填說明
exchangeExchange查詢是交易所。可選值參見命名詞典 - exchange。

請求示例 ​

bash
curl -X DELETE 'https://webapi.futunn.com/api/v1.0/accounts/{acc_id}/orders/{order_id}?exchange=US' \
  -H 'Authorization: Bearer <AccessToken>' | jq

響應示例 ​

json
{
  "s": "ok"
}

失敗響應:

json
{
  "s": "error",
  "errcode": -1200,
  "errmsg": "Error message."
}