QuantConnect / Lean.Brokerages.InteractiveBrokers

InteractiveBrokers Brokerage Plugin
Apache License 2.0
31 stars 20 forks source link

Enable Custom Exchange to Route Orders #108

Open AlexCatarino opened 5 months ago

AlexCatarino commented 5 months ago

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

violet-day commented 3 months ago

any progress?

violet-day commented 2 months ago

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

AlexCatarino commented 2 months ago

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!