Lean.Brokerages.InteractiveBrokers
Lean.Brokerages.InteractiveBrokers copied to clipboard
Enable Custom Exchange to Route Orders
Expected Behavior
Be able to use a custom exchange via order properties.
Actual Behavior
The default exchange the Symbol should be routed to is hard-coded as "Smart," and we might need to send it to another.
Potential Solution
Implement PreferredExchange in InteractiveBrokerOrderProperties and use this value as default.
Reproducing the Problem
N/A
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue
any progress?
can u give me some advise to implment this feature @AlexCatarino
Hi @violet-day, The OrderProperties has the Exchange property. We can use this property to set the contract.Exchange.
We have an example on how to use order properties here.
Good luck!