盈透证券 - TWS API - 最低价格增量

问题描述

我正在尝试创建一个将在 STK 市场下订单的 TWS API 脚本。我发现有各种市场规则,这些规则规定了最低价格增量。我查询系统以找出 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,但我不确定如何将其追溯到上述情况输出

你能帮我弄清楚吗?

解决方法

如果要确定价格增量,可以从合同明细中获取信息。 minTick 字段为您提供合约的最小价格增量。例如,在合约“QQQ”上,minTick 为 0.01,这意味着您可以提交以美元为单位的订单,增量为 1 美分。小数点右侧超过 2 位数的订单将失败。

,

我从 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 之间。 "