跳轉到內容

撤銷訂單

該接口用於訂單撤銷。

CLI安裝 CLI

bash
# 將下方訂單 ID 替換為實際的訂單 ID
longbridge cancel 693664675163312128

Request

HTTP MethodDELETE
HTTP URL/v1/trade/order

Parameters

Content-Type: application/json; charset=utf-8

NameTypeRequiredDescription
order_idstringYES訂單 ID

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

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

Response Status

StatusDescriptionSchema
200提交成功,訂單已委托。None
400撤單被拒絕,請求參數錯誤。None