簡體   English   中英

盈透證券 - TWS API - 最低價格增量

[英]Interactive Brokers - TWS API - Minimum Price Increment

我正在嘗試創建一個 TWS API 腳本,它將在 STK 市場下訂單。 我發現有各種市場規則,規定最低價格增量。 我查詢系統以找出marketRuleIds ,但我不知道如何解釋reqMarketRule的結果,例如市場規則 ID 557提供以下結果:

Price Increment. LowEdge: 0.000000, Increment: 0.000100
Price Increment. LowEdge: 1.000000, Increment: 0.010000

市場規則 ID 26 提供以下結果:

Price Increment. LowEdge: 0.000000, Increment: 0.010000

市場規則 ID 1916 提供以下結果:

Price Increment. LowEdge: 0.000000, Increment: 0.000001
Price Increment. LowEdge: 0.001000, Increment: 0.000002
Price Increment. LowEdge: 0.002000, Increment: 0.000005
Price Increment. LowEdge: 0.005000, Increment: 0.000010
Price Increment. LowEdge: 0.010000, Increment: 0.000020
Price Increment. LowEdge: 0.020000, Increment: 0.000050
Price Increment. LowEdge: 0.050000, Increment: 0.000100
Price Increment. LowEdge: 0.100000, Increment: 0.000200
Price Increment. LowEdge: 0.200000, Increment: 0.000500
Price Increment. LowEdge: 0.500000, Increment: 0.001000
Price Increment. LowEdge: 1.000000, Increment: 0.002000
Price Increment. LowEdge: 2.000000, Increment: 0.005000
Price Increment. LowEdge: 5.000000, Increment: 0.010000
Price Increment. LowEdge: 10.000000, Increment: 0.020000
Price Increment. LowEdge: 20.000000, Increment: 0.050000
Price Increment. LowEdge: 50.000000, Increment: 0.100000
Price Increment. LowEdge: 100.000000, Increment: 0.200000
Price Increment. LowEdge: 200.000000, Increment: 0.500000
Price Increment. LowEdge: 500.000000, Increment: 1.000000

當我嘗試在 TWS 應用程序中使用市場規則1916進行 STK 交易時,我可以看到增量為 0.50 GBP,但我不確定如何將其追溯到上述 output。

你能幫我弄清楚嗎?

我從 Reddit 對同一問題的評論中得到了答案。 謝謝major_domo 的幫助!

摘自提供的答案:“

Price Increment. LowEdge: 100.000000, Increment: 0.200000
Price Increment. LowEdge: 200.000000, Increment: 0.500000
Price Increment. LowEdge: 500.000000, Increment: 1.000000

或價格高於 100,最小增量為 0.2; 對於高於 200 的價格,最小增量為 0.5; 對於 500 以上的價格,它是 1。

如果 TWS 顯示增量為 0.5,我假設當前價格在 200 到 500 之間。 "

如果要確定價格增量,可以從合同明細中獲取信息。 minTick 字段為您提供合約的最小價格增量。 例如,在合約“QQQ”上,minTick 為 0.01,這意味着您可以提交以美元為單位的訂單,增量為 1 美分。 小數點右側多於 2 位的訂單將失敗。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM