參數對照表
類別
Class
Condition Object
| Parameter | Type | Meaning |
|---|---|---|
| market_type | TradingType | 監控類型 可選用參數 : Reference 自動參考委託物件、Scheduled 時間 |
| symbol | string | 股票代號 |
| trigger | TriggerContent | 觸發條件 可選用參數 : BidPrice 買進價、AskPrice 賣出價、MatchedPrice 成交價、TotalQuantity 總量、Time 時間 |
| trigger_value | string | 監控條件數值 (若為時間則填入 HHMMSS) |
| comparison | Operator | 比對值 可選用參數 GreaterThanOrEqual 大於等於、LessThanOrEqual 小於等於 、 GreaterThan 大於 、 LessThan 小於 |
info
- 選擇
Reference時, trigger 可搭配BidPrice、AskPrice、MatchedPrice、TotalQuantity - 選擇
Scheduled時,symbol 需填入欲觸發之商品,trigger 需帶入Time
FutOptConditionOrder Object
| Parameter | Type | Meaning |
|---|---|---|
| buy_sell | BSAction | 買賣別 可選用參數 Buy 買 、 Sell 賣 |
| symbol | string | 股票代號 |
| price | string | 委託價格 |
| quantity | int | 委託數量 |
| market_type | FutOptConditionMarketType | 盤別 可選用參數 : Future 期貨日盤、Option 選擇權日盤、FutureNight 期貨夜盤、OptionNight 選擇權夜盤 (IMPORTANT: 以下功能不支援夜盤: 1. 分時分量, 2. 移動鎖利, 3. 時間觸發條件) |
| price_type | FutOptConditionPriceType | 價格別 : 可選參數 :BidPrice 買進價、 AskPrice 賣出價、MatchedPrice 成交價、Limit 限價、LimitUp 漲停、LimitDown 跌停、Market 市價、Reference 參考價(平盤價) 、RangeMarket 範圍市價 |
| time_in_force | TimeInforce | 委託條件 : 可選參數 :ROD、IOC、FOK |
| order_type | FutOptConditionOrderType | 委託類別 : 可選參數 :New 新倉、Close 平倉 |
caution
以下功能不支援夜盤:
- 分時分量
- 移動鎖利
- 時間觸發條件
FutOptTPSLOrder Object
| Parameter | Type | Meaning |
|---|---|---|
| time_in_force | TimeInforce | 委託條件 : 可選參數 :ROD、IOC、FOK |
| price_type | FutOptConditionPriceType | 價格別 : 可選參數 :BidPrice 買進價、 AskPrice 賣出價、MatchedPrice 成交價、Limit 限價、LimitUp 漲停、LimitDown 跌停、Market 市價、Reference 參考價(平盤價) 、RangeMarket 範圍市價 |
| order_type | FutOptConditionOrderType | 委託類別 : 可選參數 :New 新倉、Close 平倉 |
| target_price | string | 停損/停利觸發價 |
| price | string | 停損/停利委託價 |
| trigger (保留欄位) | TriggerContent | 2.2.0 版本新增欄位,暫無相關功能,可忽略 |
info
priceType 若為 limit 時,price 需填入價格;其餘 price 填入空字串
FutOptTPSLWrapper Object
| Parameter | Type | Meaning |
|---|---|---|
| stop_sign | StopSign | 停止條件 : 可選用 Full 全部成交為止、Partial 部分成交為止、UntilEnd 效期結束為止 |
| TP | FutOptTPSLOrder Object (Optional) | 停利條件內容 |
| SL | FutOptTPSLOrder Object (Optional) | 停損條件內容 |
| end_date | string (Optional : 空值同母單 StartDate) | 條件停止日期 |
| day_trade | bool (Optional) | 全部成交後當沖 (期貨固定為 True) |
FutOptTrailOrder
| Parameter | Type | Meaning |
|---|---|---|
| symbol | string | 商品代號 |
| price | string |