繁体   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