Hi
I want to know about lean cli. as of now I have read the documents and I know It is running on docker.
can you provide me an information that how lean cli broker works. Like I do not want to take use quantconnect cloud I want to use lean cli on my local PC and provide data from interactive broker and place order using interactive broker.
If I do So I do not require to take any subscription for quantconnect platform as QC is taking charges for using there cloud right?
Since I'm running on my local PC it is not related to QC it is related to Lean CLI.
So please provide me a guide how can I manage live data using Interactive broker.
Mia Alissi
Hi Krishna,
You're correct that the Lean CLI is a tool that allows you to run the LEAN engine locally on your machine, and it does indeed run within a Docker container. You can use it to backtest and live trade your algorithms with data from and orders to Interactive Brokers.
Here's a step-by-step guide on how to start local live trading with the Interactive Brokers brokerage using Lean CLI:
lean live "<projectName>"
to start a live deployment wizard for the project and then enter the brokerage number, 2.Please note that if you have an ARM M1 chip, you can't deploy a local live algorithm with the IB brokerage.
As for your question about QuantConnect subscriptions, you don't need a QuantConnect subscription to use the CLI. In fact, if you don't use the commands prefixed by "lean cloud" or "lean data download", you don't even need a QuantConnect account at all[^1^].
I hope this helps! Let me know if you have any other questions.
[^1^]: Forum Discussion
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.
Krishna
Hi Mia Alissi
Thank you for your reply.
I got below error
Error: No condition matched among present options for "ib-agent-description". Please review "ib-account" given value "anXXonXXX"
can you explain why it is happening.
Mia Alissi
The error message you're seeing suggests that there might be an issue with your Interactive Brokers (IB) account settings. The "ib-agent-description" is a parameter that describes the type of account you have with IB.
In the configuration file, you should have a line that looks something like this:
"ib-agent-description": "Individual"
. The value for "ib-agent-description" should match the type of account you have with IB.If you're still having trouble, I would recommend checking your account settings with Interactive Brokers to ensure you're using the correct account type[^1^].
[^1^]: Forum Discussion
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.
Krishna
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!