Back

QuantConnect in Python?

I was under the impression that quant connect was specifically coded in C# which I know nothing of. Recently a friend told me that I can code on quant connect with python, which I am familiar with. I have been using quantopian but gave up on making my algo there since their API is crap and because they don't tell you where data is stored or how it is stored it makes it very frustrating to understand how to code a part of the algo.

So, is it true? Can I program in python here? Is there different API for this or do I need to do detective work? How do I code here with python?

Thank you,
Dante Migale

Update Backtest








Dante - I wondered the same thing when I came here from Quantopian as well. After writing many successful algorithms on that platform I realized it was limited and that it could not do some of the things I wanted it to do. After some searching I found QC with the same goal as you. If you've done some exploring you'll see that Python is still in beta and the QC dev team is working very hard to release documentation on it. If you can set aside some time id say it's definitely worth it to learn C# before python is officially released.

As far as the API goes yes it's different this IDE uses the Lean engine API to run everything for your algos and its totally different from Quantopians Pipeline API
0

Hi Dante, and welcome to QC :-) I also came here after seeing the same shortfalls in Quantopian.

Yes! You can code in Python, Java, VBA, F# or C#! When you click the Backtester up there in the main bar, it will take you to the IDE. There, when you create a new project, it will give you the option to choose the coding language.

If I had to give QC props for anything, it would be that they've open sourced the entire engine. So you can even download it and use it on your personal computer if you wanted. Super powerful.

0

Coming from Java myself, I'd say that picking up C# is extremely easy. Even though you will have to get used to the brackets and all, I'd say you could pick up C# quite quickly too. Plus it's always cool to master a new language :)

1

My theory: Quantopian's true purpose is to be a prank. Whilst it can do some very nice things, those features are only there to get you committed, so that when you realize that the entire platform is fatally flawed and actually terribly unusable, the misery is magnified.

0

i found this project using search in github, you can connect to C# libraries using either Ironpython or pythonnet. Use the latter especially if you want to connect to pandas, ipython, matplotlib, seaborn, etc.

0

@Denis - LEAN uses IronPython. I believe it supports the common python libraries. Soon we'll get LEAN working with Numpy etc. I think PythonNet is about using python terms inside C#? This won't satisfy most python users.

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.


Hello guys, glad to be here. I'm still a beginner and have some limited skills in Python. Could you help me with some link/reference to  docs, containing a list of class/methods (Python) usable in qc? I've got through  

https://www.quantconnect.com/docs#Getting-Started

 

0

The docs page you mentioned covers most of the features. 
The complete API can be found at Lean docs page.
We have been working on tutorials that will cover topics from introduction to python to advanced quant strategies passing by the Lean/QuantConnect API. It is a must for beginners!

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