Lean.Brokerages.InteractiveBrokers icon indicating copy to clipboard operation
Lean.Brokerages.InteractiveBrokers copied to clipboard

Enable Custom Exchange to Route Orders

Open AlexCatarino opened this issue 1 year ago • 3 comments

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 master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

AlexCatarino avatar Apr 26 '24 13:04 AlexCatarino

any progress?

violet-day avatar Jul 04 '24 03:07 violet-day

can u give me some advise to implment this feature @AlexCatarino

violet-day avatar Jul 26 '24 03:07 violet-day

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!

AlexCatarino avatar Jul 31 '24 20:07 AlexCatarino