修改委託價格
ModifyPrice
先使用 MakeModifyPriceObj 建立 ModifyPriceObj物件
| 參數 | 類別 | 說明 |
|---|---|---|
| orderResult | OrderResult | 預計修改的委託單 |
| price | string | 修改後的價格 |
| priceType | PriceType | 修改後的價格旗標 (註: 輕量風控版已開放使用價格旗標) |
caution
當 price 欄位有填入值時,priceType 需為 null ; 當 priceType 欄位有填入值時,price 需為 null
將回傳的物件放入 modifyPrice 的方法中
輸入參數
| 參數 | 類別 | 說明 |
|---|---|---|
| account | Account | 帳號 |
| modifiedPriceObj | ModifyPriceObj | 修改價格的物件 |
| unblock | bool (optional) (default = false) | 是否採用非阻塞 |
Result 回傳
| 參數 | 類別 | 說明 |
|---|---|---|
| isSuccess | bool | 是否成功 |
| data | OrderResult | 回傳修改資訊 |
| message | string | 當isSuccess = False 回傳錯誤訊息 |
修改資訊 OrderResult 欄位
Return type : Object
| 參數 | 類別 | 說明 |
|---|---|---|
| functionType | int | 功能別 : 0 新單 、 10 新單執行 、 15 改價 、 20 改量 、 30 刪單 、 90 失敗 |
| date | string | 交易日期 |
| seqNo | string | 委託單流水序號 |
| branchNo | string | 分公司代號 |
| account | string | 帳號 |
| orderNo | string | 委託書號 |
| assetType | int | 資產類別 : 0 證券 |
| market | string |