跳轉到內容

修改訂單

該接口用於修改訂單的價格,數量。

CLI安裝 CLI

bash
# 將下方訂單 ID 替換為實際的訂單 ID
longbridge replace 693664675163312128 --qty 200 --price 255.00

Request

HTTP MethodPUT
HTTP URL/v1/trade/order

Parameters

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

NameTypeRequiredDescription
order_idstringYES訂單 ID
quantitystringYES改單數量,例如:200
pricestringNO改單價格,例如:388.5

LO / ELO / ALO / ODD / LIT 訂單必填
trigger_pricestringNO觸發價格,例如:388.5

LIT / MIT 訂單必填
limit_offsetstringNO指定價差

TSLPAMT / TSLPPCT 訂單在 limit_depth_level 為 0 時必填
trailing_amountstringNO跟蹤金額

TSLPAMT 訂單必填
trailing_percentstringNO跟蹤漲跌幅

TSLPPCT 訂單必填
remarkstringNO備註 (最大 64 字符)
limit_depth_levelint32NO指定買賣檔位,TSLPAMT / TSLPPCT 訂單必填
monitor_pricestringNO監控價格,TSLPAMT / TSLPPCT 訂單必填
trigger_countint32NO觸發次數,LIT / MIT / TSLPAMT / TSLPPCT 訂單必填

Request Example

Response

Response Headers

  • Content-Type: application/json

Response Example

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

Response Status

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