交易

撤銷訂單

DELETEhttps://openapi.longbridge.com/v1/trade/order

鑑權

簽名方式:每個請求用 App Key / Secret 簽名。請求頭如下:

名稱類型必填說明
Authorizationstring · header必填OpenAPI 後台 上的賬戶 Access Token,作為原始 token 傳入(不帶 Bearer 前綴),並參與簽名計算。
X-Api-Keystring · header必填你的 App Key。
X-Timestampstring · header必填請求時間戳,單位秒(Unix 時間)。
X-Api-Signaturestring · header必填HMAC-SHA256 簽名。格式:HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=。

該接口用於訂單撤銷。

>_ CLI
# Replace the order ID below with your actual order ID
longbridge order cancel 693664675163312128

請求

查詢參數

名稱類型必填說明
order_idstring必填訂單 ID
is_attachedboolean可選order_id 是否為附加單

響應

響應 JSON 示例

{
  "code": 0,
  "message": "success",
  "data": {}
}

錯誤碼

參見錯誤碼文檔。