I would like to compile a list of open source trading platforms. Something that would give an overview and comparison of different architectures and approaches.
-
$\begingroup$ This question may be too broad in scope... i.e. A data capture layer, data stores/management, analytics, signal generation, order management and routing, risk management, and reporting/post trade items. All are potential components, can you clarify on which of the above aspects you want to know about? or are you looking for a "do-it-all product"? $\endgroup$– Kyle BalkissoonCommented Jan 7, 2015 at 16:40
-
$\begingroup$ Though Quantopian and QuantConnect are built on open source packages, they themselves are not open source. ALSO, Quantopian no longer supports live brokerage trading. $\endgroup$– Thoracius AppotiteCommented Aug 31, 2017 at 17:55
-
$\begingroup$ Is there any particular reason the high-frequency tag is here? $\endgroup$– TheodoreCommented Nov 20, 2018 at 2:27
15 Answers
Definitely check out Quantopian and Zipline.
Quantopian provides a free research environment, backtester, and live trading rig (algos can be hooked up to Interactive Brokers). The algorithm development environment includes really handy collaboration tools and an open source debugger. They provide tons of data (even Morningstar fundamentals!) free of charge.
Quantopian's platform is built around Python and includes all the open source goodness that that the Python community has to offer (Pandas, NumPy, SciKitLearn, iPython Notebook, etc.)
Successful live traders will be offered spots in the Quantopian Managers Program, a crowd-sourced hedge fund.
Zipline is the open source backtesting engine powering Quantopian. It provides a large Pythonic algorithmic trading library that closely approximates how live-trading systems operate.
(full disclosure: I work at Quantopian)
-
1$\begingroup$ Do you have any numbers about the successfulness (or lack of it) of developers who use Quantopian? Are there many successful live traders? How successful? Broadly, what sorts of techniques do they employ? $\endgroup$– DavidCommented Oct 20, 2016 at 20:14
-
$\begingroup$ Now that Quantopian is closed, will Zipline remain a viable solution (and maintained)? $\endgroup$– 118218Commented Jan 14, 2021 at 13:44
-
$\begingroup$ Quantopian team is now at Robinhood $\endgroup$ Commented Feb 12, 2021 at 9:24
-
$\begingroup$ I logged in and tried building some things, but the UI was so slow and clunky. $\endgroup$– nurettinCommented Dec 16, 2022 at 7:38
QuantConnect provides an open-source, community-driven project called Lean. The project has thousands of engineers using it to create event-driven strategies, on any resolution data, any market, or asset class.
Our system models margin leverage and margin calls, cash limitations, transaction costs. We maintain a full cashbook of your currencies. It's about as close to reality as possible. It's 20x faster than Zipline and runs on any asset class or market. We provide tick, second or minute data in Equities and Forex for free.
QuantConnect supports Python, C#, and F#
I'm a founder @ QuantConnect
January 2017: We now offer intraday Options, Futures, Forex, CFD, and US Equities backtesting through QuantConnect.com
October 2017: We have added crypto trading on GDAX.
April 2018: We have created a modular algorithm framework; separate algorithm components that can be plugged together for rapid algorithm development.
Jan 2019: Launched an Alpha Marketplace, with submissions from quants around the world.
July 2020: We broke apart the platform into services like AWS. Allowing you to spin up different parts of our platform and only pay for what you use.
August 2020: We added L1-Spread data and fill models for equities backtesting.
December 2020: We added future-options support.
January: 2021: Deployed cloud-optimization to test parameter sensitivity.
February 2021: Opened our alpha market place to all investors containing hundreds of strategies with SR >1.
-
$\begingroup$ Can you please post a link to how Python is supported? I had a quick poke around your site but didn't find it immediately and gave up. $\endgroup$– snthCommented Aug 12, 2015 at 8:12
-
$\begingroup$ Added links in answer to Github for LEAN. To use other languages on QuantConnect.com just click on Create Project. $\endgroup$ Commented Aug 12, 2015 at 16:14
-
$\begingroup$ @JaredBroad: Your project looks really interesting. What is not entirely clear for me: in one of your videos it looks like a QuantConnect account is required, even if the LEAN engine is running locally. Does that in turn mean one needs a "prime" account for live trading with the LEAN engine? $\endgroup$– ToJoCommented May 12, 2018 at 10:32
-
$\begingroup$ Thanks ToJo! LEAN is self contained; no account needed. The desktop charting tutorial is an optional web hosted view -- which uses streaming packets & requires a free QC account. $\endgroup$ Commented May 15, 2018 at 0:52
-
1$\begingroup$ You can (import custom data)[quantconnect.com/docs/algorithm-reference/… to achieve that goal @mac13k. $\endgroup$ Commented Feb 16, 2021 at 8:02
List of links/projects I stumbled upon while doing the research:
- Open Source Trading Platforms (might be outdated)
As a beginner in AlgoTrading QuantConnect and Quantopian are great for practice and improving your skills but for a serious Algo Trader , they are basically useless. An Algo Trader requires flexibility to investigate trading ideas and add or remove libraries or parts of the system that do not work. You need to automatically and constantly reevaluate your systems . At this level of trading , Quantopian and Quantconnect are very rigid and completely not capable. May be in a few years they will be at a level where implementing new trading ideas with more advanced libraries is possible. This two startups are looking for money , plain and simple. If you have been developing algos that are actually profitable and you are in know in the trading industry. if you have worked with the Big boys, Hedge funds, HFT firms, and Trading firms you will know why i say this. Just be careful do not put all your eggs in one basket
QuantConnect and Quantopian were the first algorithmic trading platforms that became available and they are the most advanced (even though they need a lot more work for a professional trader, they are a good starting point).
This is an emerging market, lots of startups are rising. Nowadays new platforms are available, for example:
- www.cloud9trader.com
- alta5.com
- quantiacs.com
Every platform has is own characteristics, but all in all they are all work in progress. it will take few more years before being able to have a stable trading platform that you can rely on and that offers all you need for professional trading.
Can take a look the other pointers from wikipedia http://en.wikipedia.org/wiki/Algorithmic_trading
Another list is here: http://algotradingindia.blogspot.it/2012/05/open-source-trading-platforms-list.html
For hedge funds there is a famous top solution publicly available (referenced by wiki), but not "open source". ("Open source" stuff is usually put around by enthusiasts with no clue about real algo trading.)
It depends on either the language(s) you know or which languages you wish to learn.
Python is a must, and the two major platforms I know of (Quantopian and Quantconnect) offer support for Python. In fact, a vast majority of the trading algorithms on the forums and discussions are in Python. This is especially the case given Quantopian only has support for Python and nothing else, Quantconnect however offers support C# and F# as well. In my experience, Quantconnect has been better as they offer the language closest to what I know the best (that language being C# and the one I am good at being C++), plus they offer higher resolution data for various asset classes (they not only have equities and futures, but options, forex and cryptocurrencies). They offer tick level data for crypto, equities, forex and futures. This was not an advertisement for Quantconnect however... I do not even use it.
For work I do in Python, I use a Jupyter notebook running locally on my computer. Libraries I use for Python primarily are
- Pandas
- NumPy
- SciPy
- Scikit-learn
- ARCH
- PyFlux
- TensorFlow (rarely)
In C++, which is where I do most of my work, since I'm into high frequency trading, I use Quantlib which is mostly useful for coming up with derivatives pricing models, as well as Armadillo, the GNU Scientific Library (GSL), the GNU linear programming kit (GLPK), and TaLib (technical analysis library).
I use Vim C++ for whatever that's worth and I would urge you to invest in cultivating your own environment for research because if you are really planning on doing real research and thorough backtesting, you are going to need a lot more flexibility with respect to libraries and the data being utilized.
There's this one written by me a few years back called autoStock. Worth taking a look.
Still in early stages but if you can code in Java / Python this might be worth taking a look: https://github.com/melphi/algobox
OpenTrade An open source OEMS, and algorithmic trading platform in modern C++
If you only like to use methods of technical analysis in java, here is a good code to read: algorithmic trading in java
-
$\begingroup$ Please disclose your affiliation with this project. $\endgroup$– Bob Jansen ♦Commented Jun 2, 2020 at 19:12
FreqTrade Bot is excelent option right now.
Still under heavy development and in early stages but has lots of features and could quickly put a strategy to test in the cryptocurrency makets, connected with CCXT library.
On GNU/Linux (and hence other Unix-like systems) you could use Qtstalker, which "...is 100% free software, distributed under the terms of the GNU GPL."
-
$\begingroup$ There hasn't been any new releases since 2008. Qtstalker uses Qt 3, which is no longer supported by almost all Linux distributions. $\endgroup$– FluxCommented Apr 22, 2021 at 19:06
I think you have to check http://www.modulusfe.com/products/ for a high frequency trading solution with open source code.
-
$\begingroup$ Blegh this seems to be 'commercial, open source which is something else entirely dixit modulusfe. I don't think they sell what's generally known as open source. $\endgroup$– Bob Jansen ♦Commented Aug 21, 2016 at 13:50
What about the API OANDA as trading API?
-
$\begingroup$ Could you tell a bit more about this platform? $\endgroup$– Bob Jansen ♦Commented Oct 2, 2018 at 10:04
-
$\begingroup$ Doesn't look like it is open source. $\endgroup$ Commented Oct 5, 2018 at 9:14
-
$\begingroup$ According to a book I read. OANDA have wider adoption as it is free to use. $\endgroup$– Dave08Commented Jan 5, 2019 at 2:31