Lean.Brokerages.InteractiveBrokers
Lean.Brokerages.InteractiveBrokers copied to clipboard
Handle multiple securities under the same symbol
Example: DAX futures has DAX, Mini DAX and Micro DAX (which in Lean are "FDAX", "FDXM", and "FDXS", respectively) under the same symbol ("DAX") but they differ on their contract multiplier and trade class.
Related: https://github.com/QuantConnect/Lean/pull/8732 https://github.com/QuantConnect/Lean.Brokerages.InteractiveBrokers/pull/160
Potential solution
Refactor the symbol map dictionary so that a single IB symbol can be mapped to multiple Lean symbols. WIth this, the correct multiplier will be used to create the correct IB contract to make requests.