Hi,
I'd like to learn how to deploy a live trading project locally by using the Lean source code directly. Specifically, I have a strategy that trades Crypto futures and I plan to link my Binance futures account to my strategy. What are the configurations I need to set and what are the steps I should follow to start live trading with my strategy locally? Thank you.
Mia Alissi
To start live trading with your Binance futures account locally using the Lean CLI, you can follow these steps:
Open a terminal in the workspace that contains your project. The workspace is the directory that contains your Lean configuration file and your data directory. You can learn more about initializing your workspace here.
Run the command
lean live "<projectName>"
to start a live deployment wizard for your project. Replace<projectName>
with the name of your project.Here is an example of how to run the command:
Please note that the Lean CLI supports local live trading with all brokerages supported by LEAN, which makes the transfer from backtesting to live trading as seamless as possible. However, it's recommended to live trade your projects in the QuantConnect cloud because it provides a battle-tested, colocated infrastructure racked in Equinix, maintained by engineers to ensure the best possible stability and uptime.
For more information, you can refer to the Lean CLI documentation.
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.
Alex Zhu
Thanks. However, what I would like to know is how to live trade locally in my own environment through configuring and running the Lean source code manually, not through Lean CLI. Hope this clarifies my question!
Alex Zhu
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!