A fast algo-trading platform
Project description
Roboquant is an open-source algorithmic trading platform. 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.org.
Usage
The following code snippet shows the steps required to run a full back-test on a number of stocks.
import roboquant as rq
feed = rq.feeds.YahooFeed("JPM", "IBM", "F", start_date="2000-01-01")
strategy = rq.strategies.EMACrossover()
account = rq.run(feed, strategy)
print(account)
Install
Roboquant can be installed like most other Python packages, using pip or conda. Make sure you have Python version 3.10 or higher installed.
python3 -m pip install --upgrade roboquant
The core of roboquant limits the dependencies. But you can install roboquant including one or more of the optional dependencies if you need certain functionality:
# market data from Yahoo Finance using the YahooFeed
python3 -m pip install --upgrade "roboquant[yahoo]"
# PyTorch based strategies using RNNStrategy
python3 -m pip install --upgrade "roboquant[torch]"
# Integration with Interactive Brokers using IBKRBroker
python3 -m pip install --upgrade "roboquant[ibkr]"
# Install all dependencies
python3 -m pip install --upgrade "roboquant[all]"
Building from source
Although this first step isn't required, it is recommended to create a virtual environment. Go to the directory where you have downloaded the source code and run the following commands:
python3 -m venv .venv
source .venv/bin/activate
You should now be in the virtual environment and ready to install the required packages and build/install roboquant:
pip install -r requirements.txt
python -m build
pip install .
Some other useful commands:
# run the unit tests
python -m unittest discover -s tests/unit
# validate the code
flake8 roboquant tests
Kotlin version
Next to this Python version of roboquant
, there is also a Kotlin version available.
Both (will) share a similar API, just the used computer language is different.
Which one to use depends very much on personal preference, skills and the use-case.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for roboquant-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d14a428c7b7cf75d618677b2f0a24523c652547e8319c7cfdb04900511505b4a |
|
MD5 | 500c1755ddb46e712081461698d9d8fc |
|
BLAKE2b-256 | 58386896cc0ed1b6a5972541258f7cce12cfcc473e1889e49a9843d3c020bfe1 |