Skip to main content

A fast algorithmic trading platform with support for AI based strategies

Project description

roboquant logo

PyPI - Version PyPI - License PyPI - Python Version PyPI - Status GitHub Actions Workflow Status discord

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", "TSLA")
strategy = rq.strategies.EMACrossover()
account = rq.run(feed, strategy)
print(account)

Install

Roboquant can be installed like most other Python packages, using tools like uv, pip or conda. Make sure you have Python version 3.11 or higher installed.

python3 -m pip install --upgrade roboquant

The core of roboquant limits the number of dependencies. But you can install roboquant including one or more of the optional dependencies if you require certain functionality:

# 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]"

# Integration with Alpaca
python3 -m pip install --upgrade "roboquant[alpaca]"

Additionally, if you want to use the any of TA-Lib techncial indicators, you'll need to install it first. You can read a more about that on ta-lib-python GitHub

Building from source

Roboquant.py uses uv as the main tool for handling package dependencies.

uv sync --all-extras --dev

You should now be in the virtual environment and ready to build/install roboquant:

uv build
uv pip install .

Some other useful commands:

# build & validate the code
./bin/verify.sh

# publish, only works if UV_PUBLISH_TOKEN is set
./bin/publish.sh

License

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

Disclaimer

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 authorised by any financial regulator.

Kotlin version

Next to this Python version of roboquant, there is also a Kotlin version available. Both share a similar API, just the used computer language is different. Which one to use depends very much on personal preferences, skills and usage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

roboquant-2.0.0.tar.gz (1.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

roboquant-2.0.0-py3-none-any.whl (748.1 kB view details)

Uploaded Python 3

File details

Details for the file roboquant-2.0.0.tar.gz.

File metadata

  • Download URL: roboquant-2.0.0.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for roboquant-2.0.0.tar.gz
Algorithm Hash digest
SHA256 3350d01d3c7d0bf50331fef71e4f592069bbd908ef920383ec96af12b9183942
MD5 71c7ab4768fbf506c9fbc7f69b1f8aee
BLAKE2b-256 114c362ea601753ec897105f5c7b8249c3d1e29ff6bbb1eb6dc9e873b3fa3e40

See more details on using hashes here.

File details

Details for the file roboquant-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: roboquant-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 748.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for roboquant-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fefc1473af471aeac8cb28029cd4539e6b0619b45abfcff9ac7fb5bbabcd934
MD5 3254b87dd9be46de642f178b88a8a6c9
BLAKE2b-256 345393d8f5e4bdc5a9d54b437b1ccc0828df050c69ffe1b988e333588331b03f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page