批次修改委託價格
BatchModifyPrice
先使用 MakeModifyPriceObj 建立 ModifyPriceObj物件
參數 | 類別 | 說明 |
---|---|---|
orderResult | OrderResult | 預計修改的委託單 |
price | string | 修改後的價格 |
priceType | PriceType | 修改後的價格旗標 |
caution
當 price 欄位有填入值時,priceType 需為null ; 當 priceType 欄位有填入值時,price 需為null
將回傳的物件放入 BatchModifyPrice 的方法中
輸入參數
參數 | 類別 | 說明 |
---|---|---|
account | Account | 帳號 |
ModifyPriceObj | ModifyPriceObj(list of object) | 批次修改委託單內容 |
Result 回傳
參數 | 類別 | 說明 |
---|---|---|
isSuccess | bool | 是否成功 |
data | List | 回傳修改資訊 |
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 | 市場類型 : TAIEX 上市股票 、 TAISDAQ 上櫃股票 、 TAIEMG 興櫃股票 |
marketType | MarketType | 盤別種類 : Common 整股 、 Fixing 定盤 、 IntradayOdd 盤中零股 、 Odd 盤後零股 、 Emg 興櫃 、 EmgOdd 興櫃零股 |
stockNo | string | 股票代號 |
buySell | BsAction | 買賣別 : Buy 買 、 Sell 賣 |
priceType | PriceType | 原始委託價格別 : Limit 限價 、 LimitUp 漲停 、 LimitDown 跌停 、 Market 市價 、 Reference 參考價 |
price | double | 價格 |
quantity | int | 原始委託股數 |
timeInForce | TimeInForce | 委託條件別 : Rod Rod 、 Fok Fok 、 Ioc Ioc |
orderType | OrderType | 委託單類型 : Stock 現股 、 Margin 融資 、 Short 融券 、 DayTrade 現沖先賣 、 SBL 借券 |
isPreOrder | bool | 是否為預約單 |
status | int | 委託單狀態,詳細列表請參考 STATUS |
afterPriceType | PriceType | 有效委託價格別 : Limit 限價 、 LimitUp 漲停 、 LimitDown 跌停 、 Market 市價 、 Reference 參考價 |
afterPrice | double | 有效委託價格 |
unit | int | 單位數 |
afterQty | int | 有效委託股數(包含已成交部分) |
filledQty | int | 成交股數 |
filledMoney | int | 成交價金 |
beforeQty | int | 改單前有效量 |
beforePrice | double | 改單前有效價 |
user_def | string | 自訂欄位 |
lastTime | string |