Open DerekMelchin opened 3 months ago
Believe this is related to https://github.com/QuantConnect/Lean/issues/6659, option strategies are just a blue print at the moment, they do no validation which happens later while using them, which is causing the reported behavior in this issue
Expected Behavior
When we call one of the OptionStrategies functions, if it can't find the selected contracts in the OptionChain, it throws an error message.
Actual Behavior
It throws no error message. We only get an error message after we try to place the order.
Potential Solution
or
Reproducing the Problem
In this algorithm, the call contract is removed from the chain but the put contract remains in the chain. As a result, when I try to create the Option strategy the second time, I get
(and end up with a missing leg) https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_f06123357019037c268be2826cc9fb5d.html
System Information
QC Cloud
Checklist
master
branch