Open Romazes opened 2 months ago
IB does not enforce this behavior, TradeStation does, so we have IndexOptionSymbolProperties
which is dynamic based on price, we feed prices in, maybe we could have OptionSymbolProperties.PennyProgramEnabled { set; }
which TS brokerage model set to true, we update it with market price and it dynamically changes the options SPDB kind of like the index one, just that enabled only for TS
Expected Behavior
The Lean Algorithm should support the Penny Pilot Program, allowing options on eligible securities to be quoted and traded in $0.01 increments for quotes below $3.00 and $0.05 increments for quotes at or above $3.00.
Actual Behavior
Currently, when attempting to update an order on an option such as AAPL with an expiration date of 2024/07/19 and a strike price of 215 (Right: Call), the system throws an error indicating that the price is not rounded to a valid increment. For example, attempting to place an order at a price of 18.12 results in an error like "18.12000000 not rounded to a valid price increment [0.05]".
Potential Solution
Reproducing the Problem
Please ensure that the Lean Algorithm Framework is updated to handle the Penny Pilot Program pricing increments correctly.
System Information
OS: Windows 10 x64 test: run on x64 CPU IDE: Visual Studio 2022
Additional Sources
Checklist
master
branch