Roboquant is an open-source algorithmic trading platform written in Python. It is flexible, user-friendly and completely free to use. It is designed for anyone serious about algo-trading.
So whether you are a beginning retail trader or an established trading firm, roboquant can help you to develop robust and fully automated trading strategies. You can find out more at roboquant.
The following code snippet shows the required steps to run a back-test on a number of stocks.
import roboquant as rq
feed = rq.feeds.YahooFeed("JPM", "IBM", "F", "TSLA")
strategy = rq.strategies.EMACrossover()
account = rq.run(feed, strategy)
print(account)Below are some of the key features of roboquant:
- fast back testing and live trading
- AI/ML based strategies
- market data feeds from CSV files, Yahoo Finance, Alpaca and many crypto exchanges
- multi-currency trading
- multi-asset trading with stocks, options, forex and crypto out of the box
- larger-than-memory data feeds
- TaLib based indicators and strategies
- plotting of prices and metrics
- modular and extensible
Roboquant can be installed like most other Python packages, using tools like uv, pip or conda.
Make sure you have Python version 3.12 or higher installed.
pip install roboquantThe core installation of roboquant limits the number of dependencies. But you can install roboquant including one or more of the optional dependencies if you require certain additional functionality:
# Integration with IBKR, Alpaca and Crypto exchanges
pip install "roboquant[extra]"
# AI based strategies using PyTorch and SB3
pip install "roboquant[ai]"Roboquant is made available under the Apache 2.0 license. You can read more about the Apache 2.0 license on this page: https://www.apache.org/licenses/LICENSE-2.0.html
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in roboquant by you, as defined in the Apache 2.0 license, shall be licensed as above, without any additional terms or conditions.
Absolutely no warranty is implied with this product. Use at your own risk. I provide no guarantee that it will be profitable, or that it won't lose all your money very quickly or does not contain bugs.
All financial trading offers the possibility of loss. Leveraged trading, may result in you losing all your money, and still owing more. Back tested results are no guarantee of future performance. I can take no responsibility for any losses caused by live trading using roboquant. Use at your own risk. I am not registered or authorized by any financial regulator.
