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 GitHub Actions Workflow Status discord

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.org.

Usage

The following code snippet shows the required steps 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)

Features

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, stocks, options, forex and crypto out of the box
  • larger-than-memory data feeds
  • TaLib based indicators and strategies
  • plotting of prices and metrics
  • modulair and extensible

Install

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.

python3 -m pip install --upgrade roboquant

The 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:

# AI based strategies using PyTorch and SB3
python3 -m pip install --upgrade "roboquant[ai]"

# Integration with Interactive Brokers
python3 -m pip install --upgrade "roboquant[ibkr]"

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

# Integration many crypto exchanges via CCXT package
python3 -m pip install --upgrade "roboquant[crypto]"

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.

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

roboquant-2.4.2.tar.gz (736.7 kB view details)

Uploaded Source

Built Distribution

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

roboquant-2.4.2-py3-none-any.whl (759.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: roboquant-2.4.2.tar.gz
  • Upload date:
  • Size: 736.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for roboquant-2.4.2.tar.gz
Algorithm Hash digest
SHA256 4273d3a88fdef35690ce79dd4f2857f93eac265bc494d116c944b5e703146036
MD5 f292dd3f8af825132e58f4d24fd26943
BLAKE2b-256 7f4f240b4b767976866b2259f2656fd9869ee7c99aa6a961ff2c25dcce95af69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: roboquant-2.4.2-py3-none-any.whl
  • Upload date:
  • Size: 759.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for roboquant-2.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1d3d1c72804ed9101f2eed2fd5910a2cd59d72f8c3379bad9ab965b5f11d980c
MD5 e17d098c354678e4adadd33cd436919c
BLAKE2b-256 54eedfb35decf3890a165d0e1af688adc2d404032b670fb8dea0f35a369e9c52

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