參數對照表
類別
Class
OrderObject
| Parameter | Type | Meaning |
|---|---|---|
| buy_sell | BSAction | 買賣別 可選用參數Buy 買 、 Sell 賣 |
| symbol | string | 商品代號 |
| buy_sell2 (optional) | BSAction | 買賣別 - 複式第二隻腳 |
| symbol2 (optional) | string | 商品代號 - 複式第二隻腳 |
| price | string | 委託價格 |
| lot | int | 委託口數 |
| market_type | FutOptMarketType | 盤別 可選用參數Future 期貨日盤、Option選擇權日盤、FutureNight 期貨夜盤、OptionNight 選擇權夜盤 |
| price_type | FutOptPriceType | 價格旗標 可選用參數為 Limit 限價 、 Market 市價 、 RangeMarket 範圍市價、Reference 參考價 |
| time_in_force | TimeInForce | 委託條件 可選用參數為 ROD、FOK、IOC |
| order_type | FutOptOrderType | 委託類別 可選用參數為 New 新倉、Close平倉、Auto自動、FdayTrade當沖 |
| user_def (optional) | string | 用戶自定義 (最長10個字元,不支援特殊字元) |
caution
priceType 爲 FutOptPriceType.Limit 時,需填入 price 欄位,其餘時候 price 欄位為空值或為None。
FutOptOrderResult
委託列表,透過 get_order_result(accounts) 取得。
| 參數 | 類別 | 說明 |
|---|---|---|
| function_type | int | 功能別 : 0 新單 、10 新單執行、 15 改價、 20 改量、30刪單 、90失敗 |
| date | string | 交易日期 |
| seq_no | string | 委託單流水序號 |
| branch_no | string |