# ![roboquant logo](https://github.com/neurallayer/roboquant.py/raw/main/docs/roboquant_header.png)
![PyPI - Version](https://img.shields.io/pypi/v/roboquant)
![PyPI - License](https://img.shields.io/pypi/l/roboquant)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/roboquant)
![PyPI - Status](https://img.shields.io/pypi/status/roboquant)
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/neurallayer/roboquant.py/python-package.yml)
[![discord](https://img.shields.io/discord/954650958300856340?label=discord)](https://discord.com/channels/954650958300856340/954650958300856343)
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](https://roboquant.org).
## Usage
The following code snippet shows the steps required to run a full back-test on a number of stocks.
```python
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.11 or higher installed.
```shell
python3 -m pip install --upgrade roboquant
```
If you don't want to install anything locally, you can try out roboquant in an online Jupyter environment like
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neurallayer/roboquant-notebooks/blob/main/intro_roboquant.ipynb)
or
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/neurallayer/roboquant-notebooks/HEAD?labpath=%2Fintro_roboquant.ipynb).
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:
```shell
# 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]"
# Install all dependencies
python3 -m pip install --upgrade "roboquant[all]"
```
## Building from source
Roboquant.py uses `uv` as the main tool for handling package dependencies.
```shell
uv sync
```
You should now be in the virtual environment and ready to build/install roboquant:
```shell
uv build
uv pip install
```
Some other useful commands:
```shell
# run the unit tests
uv run python -m unittest discover -s tests/unit
# validate the code
uvx ruff check
# publish, only works if UV_PUBLISH_TOKEN is set
uv publish
```
## 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.
Raw data
{
"_id": null,
"home_page": null,
"name": "roboquant",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.12,>=3.10",
"maintainer_email": null,
"keywords": "AI, crypto, exchange, finance, forex, investment, machine learning, stocks, trading",
"author": null,
"author_email": "roboquant team <info@roboquant.org>",
"download_url": "https://files.pythonhosted.org/packages/99/eb/755f7fe0d550825f17545ba41f3890e1daf18b0fb318f4cb20eb99461fb1/roboquant-0.9.7.tar.gz",
"platform": null,
"description": "\n# ![roboquant logo](https://github.com/neurallayer/roboquant.py/raw/main/docs/roboquant_header.png)\n\n![PyPI - Version](https://img.shields.io/pypi/v/roboquant)\n![PyPI - License](https://img.shields.io/pypi/l/roboquant)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/roboquant)\n![PyPI - Status](https://img.shields.io/pypi/status/roboquant)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/neurallayer/roboquant.py/python-package.yml)\n[![discord](https://img.shields.io/discord/954650958300856340?label=discord)](https://discord.com/channels/954650958300856340/954650958300856343)\n\nRoboquant 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. \n\nSo 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](https://roboquant.org).\n\n## Usage\nThe following code snippet shows the steps required to run a full back-test on a number of stocks.\n\n```python\nimport roboquant as rq\n\nfeed = rq.feeds.YahooFeed(\"JPM\", \"IBM\", \"F\", start_date=\"2000-01-01\")\nstrategy = rq.strategies.EMACrossover()\naccount = rq.run(feed, strategy)\nprint(account)\n```\n\n## Install\nRoboquant can be installed like most other Python packages, using pip or conda.\nMake sure you have Python version 3.11 or higher installed.\n\n```shell\npython3 -m pip install --upgrade roboquant\n```\nIf you don't want to install anything locally, you can try out roboquant in an online Jupyter environment like\n[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/neurallayer/roboquant-notebooks/blob/main/intro_roboquant.ipynb)\nor\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/neurallayer/roboquant-notebooks/HEAD?labpath=%2Fintro_roboquant.ipynb).\n\nThe core of roboquant limits the number of dependencies. \nBut you can install roboquant including one or more of the optional dependencies if you require certain functionality:\n\n```shell\n# PyTorch based strategies using RNNStrategy\npython3 -m pip install --upgrade \"roboquant[torch]\"\n\n# Integration with Interactive Brokers using IBKRBroker\npython3 -m pip install --upgrade \"roboquant[ibkr]\"\n\n# Integration with Alpaca\npython3 -m pip install --upgrade \"roboquant[alpaca]\"\n\n# Install all dependencies\npython3 -m pip install --upgrade \"roboquant[all]\"\n```\n\n## Building from source\nRoboquant.py uses `uv` as the main tool for handling package dependencies.\n\n\n```shell\nuv sync\n```\n\nYou should now be in the virtual environment and ready to build/install roboquant:\n\n```shell\nuv build\nuv pip install\n```\n\nSome other useful commands:\n\n```shell\n# run the unit tests\nuv run python -m unittest discover -s tests/unit \n\n# validate the code\nuvx ruff check\n\n# publish, only works if UV_PUBLISH_TOKEN is set\nuv publish \n```\n\n## License\nRoboquant 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\n\n## Disclaimer\nAbsolutely 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.\n\nAll 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.\n\n## Kotlin version\nNext 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.\nWhich one to use depends very much on personal preferences, skills and usage.\n",
"bugtrack_url": null,
"license": null,
"summary": "A fast algo-trading platform with support for machine learning based strategies",
"version": "0.9.7",
"project_urls": {
"Homepage": "https://roboquant.org",
"Issues": "https://github.com/neurallayer/roboquant.py/issues",
"Repository": "https://github.com/neurallayer/roboquant.py.git"
},
"split_keywords": [
"ai",
" crypto",
" exchange",
" finance",
" forex",
" investment",
" machine learning",
" stocks",
" trading"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "e56f5ed79f9cf0659b0cb3c7fd732936f5aa1bd71902041ad7cae3b61bd71eca",
"md5": "bffa84b23cbff40ca2de59acf9935130",
"sha256": "3d5b92bbc63de96676aae4f1cd0f0fbaf6ca6bd9cf0854fb1f90b94d8b20b75a"
},
"downloads": -1,
"filename": "roboquant-0.9.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "bffa84b23cbff40ca2de59acf9935130",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.10",
"size": 71594,
"upload_time": "2024-12-15T15:06:39",
"upload_time_iso_8601": "2024-12-15T15:06:39.659480Z",
"url": "https://files.pythonhosted.org/packages/e5/6f/5ed79f9cf0659b0cb3c7fd732936f5aa1bd71902041ad7cae3b61bd71eca/roboquant-0.9.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "99eb755f7fe0d550825f17545ba41f3890e1daf18b0fb318f4cb20eb99461fb1",
"md5": "d6fba12a1c285aed1219c05de8b21a0a",
"sha256": "52d9cde6a8417ce5daac651e2dd4ad3fd980a697218f6aa4402cab361899f9e4"
},
"downloads": -1,
"filename": "roboquant-0.9.7.tar.gz",
"has_sig": false,
"md5_digest": "d6fba12a1c285aed1219c05de8b21a0a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.10",
"size": 670518,
"upload_time": "2024-12-15T15:06:41",
"upload_time_iso_8601": "2024-12-15T15:06:41.298118Z",
"url": "https://files.pythonhosted.org/packages/99/eb/755f7fe0d550825f17545ba41f3890e1daf18b0fb318f4cb20eb99461fb1/roboquant-0.9.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-15 15:06:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "neurallayer",
"github_project": "roboquant.py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "roboquant"
}