Back

Using the Lean API

I followed the instructions on GitHub to launch the Lean API. I then double clicked on the sln file in /Lean, which opened the project in Mono.

However, there are immediate errors when loading the solution. It's not finding the namespaces on lines 22-27 and 32-37 in TransactionHandlers / AlgorithmManager.cs.

I'm about to dive in to figure out where the missing references are, but it would be nice if this were taken care of so that the package is ready for immediate use.

 

Update Backtest








Every reference to a QuantConnect namespace in QuantConnect.Lean.Engine was missing in the project.

0

Sounds like it might be an issue with your OS / IDE. What code editor are you using?

0

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.


Mono 5.10 on Ubuntu 16.04
0

There are also a lot of explanations missing from the documentation that would save me a lot of time.

The Getting Started tutorial says "Press F5" and everything loads... except that's not true. Everything builds, but no GUI loads. Many warning messages show "Project Not Built in Active Configuration", which would be nice to avoid.

I'm about an hour into this and still not up and running. I'm happy to keep a list if you want to add it to the documentation.

0

Sorry you're having issues Shaun, the tutorial was written for Visual Studio and links to a free download of that IDE. I'm not familiar with the IDE you're using -- though I'm guessing you are using Xarmin or MonoDevelop. How your code editor builds the system will vary based on what you're using. Make sure you understand the difference between the IDE (where you type) and the Mono runtime (installed libraries which run the project).

In the LEAN repo front page there is a "how to" for Linux, perhaps you could try this first? https://github.com/QuantConnect/Lean. Our test CI system uses Linux+Mono 4.6 and the build is working well.

Mono 5.10 is an unstable beta build and we cannot be sure it'll work there. We know its working on the current latest stable (4.6.2 or 4.8 seems fine). We also have 100% confidence in Ubuntu 16.04. 

0

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.


Update Backtest





0

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.


Loading...

This discussion is closed