Hi,
IB supports combo orders thu their Java API:
https://www.interactivebrokers.com/en/software/api/apiguide/java/placing_a_combination_order.htm
Is it possible to access/place combo orders in LEAN? Or to access the IB API and place them directly when events happen in my QC algos?
Thanks,
j
Alexandre Catarino
At the moment, we cannot place a combo (AKA multi leg) order with LEAN, but it is a ticket in our TODO list.
It is not possible to access the IB API through the QC API.
J Dino
I noticed a reference to combo legs in InteractiveBrokersClient.cs on github. If there's anything I can help with in implementing this let me know. IB's API is open source on github and their combo functionality is fairly well documented, so it shouldn't be too bad to extend LEAN.
Sorry, couple of other questions...
* looking through InteractiveBrokersClient.cs it looks possible to get market depth information (updateMarketDepth, etc) from IB but I haven't been able to find a good example of this in the documentation. I'm pairs trading stocks and want to be able to put in buy & sell limit orders that are highly likely to be filled. So it would be great to check market depth direct from IB right before sending the orders (I'm working at second resolution).
* can you give me a sense of the latency difference (both for market info and order placement) between coding the algo's directly in IB's API vs through LEAN?
Thanks. Great platform btw!
Alexandre Catarino
We would be very happy if you could implement combo orders in Lean.
Please checkout the Contributor's Guide.
Also, take a look at IBrokerage and IBrokerageFactory implementations.
You can open an github issue where you can ask for help and make questions.
About your other questions:
* We do not have documentation on market depth, because, despite the fact we can get it from IB, we still need to implement it in our API to make it available. This is a feature that we may have in the future.
* LEAN adds negligible latency (order of 1ms). However LEAN is not designed for HFT and if that is a concern we wouldn't recommend using it.
Jackson Dude
Any progress on Multi-leg option orders. Its been a while.
Derek Melchin
Hi Jackson,
Please see Option Strategies.
Best,
Derek Melchin
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Jackson Dude
Any progress on Multi-leg option orders. Its been a while. It does not say in the articles attached to the link. But it appears “Multi-leg (Combo) option order methods.” only support at market orders. Maybe I misunderstood. Any change you support Limit and Stop orders etc for “Multi-leg (Combo) option order methods." for both opening and closing orders
Ashutosh
Hi Jackson Dude
The platform now offers assistance for combo leg limit orders, allowing you to generate such orders without requiring each leg to share the same limit price. Additionally, support for combo limit and market orders is now accessible.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Jackson Dude
Thank you very much for letting me know. This will make testing my strategy ideas possible ;-)
J Dino
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!