I am getting started with the QC API can someone write a simple Quantconnect C# code that creates a new project that's all. I want to use that to then learn.
QUANTCONNECT COMMUNITY
I am getting started with the QC API can someone write a simple Quantconnect C# code that creates a new project that's all. I want to use that to then learn.
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.
Mia Alissi
Sure, Ikechukwu. To create a new project using the QuantConnect API, you can use the
/projects/create
endpoint. However, this is not done directly in C# code, but rather through an API call. Here is an example of how you can structure your API request:In this request, you specify the name of your project, the programming language (in this case, C#), and the ID of your organization.
If you want to create a new project locally using the Lean CLI, you can use the
lean project-create
command in your terminal:This command will create a new C# project with some basic starter code.
Please note that these operations are not done in C# code, but rather through API calls or command line instructions. Once the project is created, you can start writing your C# code in the generated Main.cs file.
For more information, you can refer to the following 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.
Ikechukwu Mokelu
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!