StrateQueue


NameStrateQueue JSON
Version 0.3.2.post0 PyPI version JSON
download
home_pageNone
SummaryThe fastest way from backtest to live trading
upload_time2025-07-24 13:35:25
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseAGPL-3.0
keywords trading backtesting live-trading algorithmic-trading financial-data quantitative-finance strategy-signals alpaca-trading
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # StrateQueue [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Take%20your%20zipline,%20vectorbt,%20backtesting.py,%20or%20backtrader%20strategies%20live%20with%20zero%20code%20changes&url=https://stratequeue.com&hashtags=python,backtesting,trading,zipline,vectorbt,quant) 

[![PyPI version](https://badge.fury.io/py/stratequeue.svg?refresh=1)](https://badge.fury.io/py/stratequeue)
[![PyPI status](https://img.shields.io/pypi/status/stratequeue.svg)](https://pypi.python.org/pypi/stratequeue/)
[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-yellow.svg)](https://github.com/StrateQueue/StrateQueue/blob/main/LICENSE)
[![GitHub contributors](https://img.shields.io/github/contributors/StrateQueue/StrateQueue)](https://github.com/StrateQueue/StrateQueue/graphs/contributors)
[![Downloads](https://pepy.tech/badge/stratequeue)](https://pepy.tech/project/stratequeue)
[![GitHub stars](https://img.shields.io/github/stars/StrateQueue/StrateQueue?refresh=1)](https://github.com/StrateQueue/StrateQueue/stargazers)
<!---[![codecov](https://codecov.io/gh/stratequeue/stratequeue/branch/main/graph/badge.svg)](https://codecov.io/gh/stratequeue/stratequeue)-->

๐Ÿ“– **[Documentation](https://stratequeue.com/docs)** | ๐Ÿš€ **[Quick Start Guide](https://www.stratequeue.com/docs/quick-start)** | ๐Ÿ’ฌ **[Community](https://discord.gg/H4hWAXJYqX)**

> **The fastest way from backtest to live trading**
[![Stargazers repo roster for @StrateQueue/StrateQueue](https://reporoster.com/stars/StrateQueue/StrateQueue)](https://github.com/StrateQueue/StrateQueue/stargazers)

> โญ๏ธ If StrateQueue saved you time or taught you something, consider [starring us on GitHub](https://github.com/StrateQueue/StrateQueue) โ€” it helps more quants discover the project!

<!---
## ๐ŸŒ README Translations

[๐Ÿ‡บ๐Ÿ‡ธ English](README.md) โ€ข [๐Ÿ‡จ๐Ÿ‡ณ ็ฎ€ไฝ“ไธญๆ–‡](README.zh-CN.md) โ€ข [็น้ซ”ไธญๆ–‡](README.zh-TW.md) โ€ข [๐Ÿ‡ฎ๐Ÿ‡ณ เคนเคฟเค‚เคฆเฅ€](README.hi.md) โ€ข [๐Ÿ‡ซ๐Ÿ‡ท Franรงais](README.fr.md) โ€ข [๐Ÿ‡ธ๐Ÿ‡ฆ ุงู„ุนุฑุจูŠุฉ](README.ar.md)
-->

## ๐Ÿ“ˆ StrateQueue ๐Ÿ“‰

Backtest to live in seconds. StrateQueue lets you deploy any Python trading strategy (**backtrader**, **zipline**, **vectorbt**, **backtrader**, etc.) to any broker with one command: ```stratequeue deploy --strategy ./your_script.py```. No code changes.

## ๐Ÿ“‘ Table of Contents
- [StrateQueue ](#stratequeue-)
  - [๐Ÿ“ˆ StrateQueue ๐Ÿ“‰](#-stratequeue-)
  - [๐Ÿ“‘ Table of Contents](#-table-of-contents)
  - [๐ŸŽฏ Quick-start: From Backtest to Live in One Command](#-quick-start-from-backtest-to-live-in-one-command)
    - [Your existing backtest:](#your-existing-backtest)
    - [Deploy to live trading:](#deploy-to-live-trading)
  - [๐Ÿ› ๏ธ Prerequisites](#๏ธ-prerequisites)
  - [๐Ÿ“ฅ Installation](#-installation)
    - [Setup](#setup)
    - [Dashboard (Experimental)](#dashboard-experimental)
  - [๐Ÿ”ง Supported Integrations](#-supported-integrations)
  - [โœจ Why StrateQueue?](#-why-stratequeue)
  - [๐Ÿ”„ How It Works](#-how-it-works)
  - [Star History](#star-history)
  - [โš ๏ธ Disclaimer โ€“ No Investment Advice](#๏ธ-disclaimer--no-investment-advice)
  - [ยฉ License](#-license)

## ๐ŸŽฏ Quick-start: From Backtest to Live in One Command
### Your existing backtest:
```python
class SMAStrategy(Strategy):
    def init(self):
        self.sma_short = self.I(ta.SMA, self.data.Close, 10)
        self.sma_long = self.I(ta.SMA, self.data.Close, 20)
    
    def next(self):
        if crossover(self.sma_short, self.sma_long):
            self.buy()
        elif crossover(self.sma_long, self.sma_short):
            self.sell()
```

### Deploy to live trading:
```
pip install stratequeue
stratequeue deploy \
  --strategy examples/strategies/backtestingpy/sma.py \
  --symbol AAPL \
  --timeframe 1m
```

NOTE: To use CCXT, use the ```--broker/data-source ccxt.<broker>``` syntax

![Quick Start Demo](examples/vhs/quick-start.gif)

## ๐Ÿ› ๏ธ Prerequisites

- Python **3.10** or newer (tested up to 3.11)
- pip and a virtual environment (recommended)
- (Optional) Broker API credentials if you plan to trade live (e.g. Alpaca, Interactive Brokers)
- (Optional) A C compiler for building certain dependencies (TA-Lib, IB-API) on Linux/macOS

## ๐Ÿ“ฅ Installation

Install the core package:

```bash
pip install stratequeue
```

If you need support for a specific engine or want everything in one go:

```bash
# Zipline support
pip install "stratequeue[zipline]"
# Backtrader support
pip install "stratequeue[backtrader]"
# Backtesting.py support
pip install "stratequeue[backtesting]"
# VectorBT support
pip install "stratequeue[vectorbt]"
# Everything
pip install "stratequeue[all]"
```

### Setup
![Setup](examples/vhs/setup.gif)

### Dashboard (Experimental)
```bash
stratequeue webui
```

## ๐Ÿ”ง Supported Integrations

| Integration | Status |
|-------------|--------|
| **Backtesting Engines** | |
| โ”œโ”€ backtesting.py | โœ… Implemented |
| โ”œโ”€ VectorBT | โœ… Implemented |
| โ”œโ”€ Backtrader | โœ… Implemented |
| โ””โ”€ Zipline-Reloaded | โœ… Implemented |
| **Brokers** | |
| โ”œโ”€ Alpaca | โœ… Implemented |
| โ”œโ”€ Interactive Brokers | โœ… Implemented |
| โ”œโ”€ CCXT | ๐ŸŸ  Implemented (not tested) |
| **Data Providers** | |
| โ”œโ”€ yfinance | โœ… Implemented |
| โ”œโ”€ Polygon.io | โœ… Implemented |
| โ”œโ”€ CoinMarketCap | โœ… Implemented |
| โ”œโ”€ Alpaca | โœ… Implemented |
| โ””โ”€ Interactive Brokers | ๐ŸŸ  Implemented (not tested) |
| โ””โ”€ CCXT | ๐ŸŸ  Implemented (not tested) |

## โœจ Why StrateQueue?

**๐Ÿ›ก๏ธ Safe by Default** โ€” Signals-only mode by default. No accidental trades.

**๐Ÿ”Œ Engine Agnostic** โ€” Works with backtesting.py, VectorBT, Backtrader, Zipline-Reloaded, and more coming soon.

**๐Ÿฆ Multi-Broker** โ€” Unified API across Interactive Brokers, Alpaca, and more coming soon.

**๐ŸŽฏ Portfolio Management** โ€” Deploy single strategies or manage hundreds across multiple accounts

## ๐Ÿ”„ How It Works

<img src="examples/imgs/how-it-works.png" alt="How it works" width="600"/>

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=stratequeue/stratequeue&type=Timeline?refresh=1)](https://www.star-history.com/#stratequeue/stratequeue&Timeline)

## โš ๏ธ Disclaimer โ€“ No Investment Advice

StrateQueue is an open-source toolkit provided **"as-is" for educational and informational purposes only**.
* It does **not** constitute investment advice, brokerage services, or a recommendation to buy or sell any financial instrument.
* All trading involves substantial risk; **past performance is not indicative of future results**. You may lose some or all of your capital.
* By using StrateQueue you acknowledge that **you alone are responsible for your trading decisions** and agree that the StrateQueue maintainers and contributors will **not be liable for any loss or damage** arising from the use of this software.
* Consult a qualified financial professional before deploying live capital.
  
## ยฉ License

StrateQueue is released under the **[GNU Affero General Public License v3.0](LICENSE)**.
  

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "StrateQueue",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Trading System Contributors <samuel.tinnerholm@gmail.com>",
    "keywords": "trading, backtesting, live-trading, algorithmic-trading, financial-data, quantitative-finance, strategy-signals, alpaca-trading",
    "author": null,
    "author_email": "Trading System Contributors <samuel.tinnerholm@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e1/fd/e9704388b3bf7ca634884c7d61615b8923ef92e9225b49a98a9cc3a9f21a/stratequeue-0.3.2.post0.tar.gz",
    "platform": null,
    "description": "# StrateQueue [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Take%20your%20zipline,%20vectorbt,%20backtesting.py,%20or%20backtrader%20strategies%20live%20with%20zero%20code%20changes&url=https://stratequeue.com&hashtags=python,backtesting,trading,zipline,vectorbt,quant) \n\n[![PyPI version](https://badge.fury.io/py/stratequeue.svg?refresh=1)](https://badge.fury.io/py/stratequeue)\n[![PyPI status](https://img.shields.io/pypi/status/stratequeue.svg)](https://pypi.python.org/pypi/stratequeue/)\n[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)\n[![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-yellow.svg)](https://github.com/StrateQueue/StrateQueue/blob/main/LICENSE)\n[![GitHub contributors](https://img.shields.io/github/contributors/StrateQueue/StrateQueue)](https://github.com/StrateQueue/StrateQueue/graphs/contributors)\n[![Downloads](https://pepy.tech/badge/stratequeue)](https://pepy.tech/project/stratequeue)\n[![GitHub stars](https://img.shields.io/github/stars/StrateQueue/StrateQueue?refresh=1)](https://github.com/StrateQueue/StrateQueue/stargazers)\n<!---[![codecov](https://codecov.io/gh/stratequeue/stratequeue/branch/main/graph/badge.svg)](https://codecov.io/gh/stratequeue/stratequeue)-->\n\n\ud83d\udcd6 **[Documentation](https://stratequeue.com/docs)** | \ud83d\ude80 **[Quick Start Guide](https://www.stratequeue.com/docs/quick-start)** | \ud83d\udcac **[Community](https://discord.gg/H4hWAXJYqX)**\n\n> **The fastest way from backtest to live trading**\n[![Stargazers repo roster for @StrateQueue/StrateQueue](https://reporoster.com/stars/StrateQueue/StrateQueue)](https://github.com/StrateQueue/StrateQueue/stargazers)\n\n> \u2b50\ufe0f If StrateQueue saved you time or taught you something, consider [starring us on GitHub](https://github.com/StrateQueue/StrateQueue) \u2014 it helps more quants discover the project!\n\n<!---\n## \ud83c\udf0d README Translations\n\n[\ud83c\uddfa\ud83c\uddf8 English](README.md) \u2022 [\ud83c\udde8\ud83c\uddf3 \u7b80\u4f53\u4e2d\u6587](README.zh-CN.md) \u2022 [\u7e41\u9ad4\u4e2d\u6587](README.zh-TW.md) \u2022 [\ud83c\uddee\ud83c\uddf3 \u0939\u093f\u0902\u0926\u0940](README.hi.md) \u2022 [\ud83c\uddeb\ud83c\uddf7 Fran\u00e7ais](README.fr.md) \u2022 [\ud83c\uddf8\ud83c\udde6 \u0627\u0644\u0639\u0631\u0628\u064a\u0629](README.ar.md)\n-->\n\n## \ud83d\udcc8 StrateQueue \ud83d\udcc9\n\nBacktest to live in seconds. StrateQueue lets you deploy any Python trading strategy (**backtrader**, **zipline**, **vectorbt**, **backtrader**, etc.) to any broker with one command: ```stratequeue deploy --strategy ./your_script.py```. No code changes.\n\n## \ud83d\udcd1 Table of Contents\n- [StrateQueue ](#stratequeue-)\n  - [\ud83d\udcc8 StrateQueue \ud83d\udcc9](#-stratequeue-)\n  - [\ud83d\udcd1 Table of Contents](#-table-of-contents)\n  - [\ud83c\udfaf Quick-start: From Backtest to Live in One Command](#-quick-start-from-backtest-to-live-in-one-command)\n    - [Your existing backtest:](#your-existing-backtest)\n    - [Deploy to live trading:](#deploy-to-live-trading)\n  - [\ud83d\udee0\ufe0f Prerequisites](#\ufe0f-prerequisites)\n  - [\ud83d\udce5 Installation](#-installation)\n    - [Setup](#setup)\n    - [Dashboard (Experimental)](#dashboard-experimental)\n  - [\ud83d\udd27 Supported Integrations](#-supported-integrations)\n  - [\u2728 Why StrateQueue?](#-why-stratequeue)\n  - [\ud83d\udd04 How It Works](#-how-it-works)\n  - [Star History](#star-history)\n  - [\u26a0\ufe0f Disclaimer \u2013 No Investment Advice](#\ufe0f-disclaimer--no-investment-advice)\n  - [\u00a9 License](#-license)\n\n## \ud83c\udfaf Quick-start: From Backtest to Live in One Command\n### Your existing backtest:\n```python\nclass SMAStrategy(Strategy):\n    def init(self):\n        self.sma_short = self.I(ta.SMA, self.data.Close, 10)\n        self.sma_long = self.I(ta.SMA, self.data.Close, 20)\n    \n    def next(self):\n        if crossover(self.sma_short, self.sma_long):\n            self.buy()\n        elif crossover(self.sma_long, self.sma_short):\n            self.sell()\n```\n\n### Deploy to live trading:\n```\npip install stratequeue\nstratequeue deploy \\\n  --strategy examples/strategies/backtestingpy/sma.py \\\n  --symbol AAPL \\\n  --timeframe 1m\n```\n\nNOTE: To use CCXT, use the ```--broker/data-source ccxt.<broker>``` syntax\n\n![Quick Start Demo](examples/vhs/quick-start.gif)\n\n## \ud83d\udee0\ufe0f Prerequisites\n\n- Python **3.10** or newer (tested up to 3.11)\n- pip and a virtual environment (recommended)\n- (Optional) Broker API credentials if you plan to trade live (e.g. Alpaca, Interactive Brokers)\n- (Optional) A C compiler for building certain dependencies (TA-Lib, IB-API) on Linux/macOS\n\n## \ud83d\udce5 Installation\n\nInstall the core package:\n\n```bash\npip install stratequeue\n```\n\nIf you need support for a specific engine or want everything in one go:\n\n```bash\n# Zipline support\npip install \"stratequeue[zipline]\"\n# Backtrader support\npip install \"stratequeue[backtrader]\"\n# Backtesting.py support\npip install \"stratequeue[backtesting]\"\n# VectorBT support\npip install \"stratequeue[vectorbt]\"\n# Everything\npip install \"stratequeue[all]\"\n```\n\n### Setup\n![Setup](examples/vhs/setup.gif)\n\n### Dashboard (Experimental)\n```bash\nstratequeue webui\n```\n\n## \ud83d\udd27 Supported Integrations\n\n| Integration | Status |\n|-------------|--------|\n| **Backtesting Engines** | |\n| \u251c\u2500 backtesting.py | \u2705 Implemented |\n| \u251c\u2500 VectorBT | \u2705 Implemented |\n| \u251c\u2500 Backtrader | \u2705 Implemented |\n| \u2514\u2500 Zipline-Reloaded | \u2705 Implemented |\n| **Brokers** | |\n| \u251c\u2500 Alpaca | \u2705 Implemented |\n| \u251c\u2500 Interactive Brokers | \u2705 Implemented |\n| \u251c\u2500 CCXT | \ud83d\udfe0 Implemented (not tested) |\n| **Data Providers** | |\n| \u251c\u2500 yfinance | \u2705 Implemented |\n| \u251c\u2500 Polygon.io | \u2705 Implemented |\n| \u251c\u2500 CoinMarketCap | \u2705 Implemented |\n| \u251c\u2500 Alpaca | \u2705 Implemented |\n| \u2514\u2500 Interactive Brokers | \ud83d\udfe0 Implemented (not tested) |\n| \u2514\u2500 CCXT | \ud83d\udfe0 Implemented (not tested) |\n\n## \u2728 Why StrateQueue?\n\n**\ud83d\udee1\ufe0f Safe by Default** \u2014 Signals-only mode by default. No accidental trades.\n\n**\ud83d\udd0c Engine Agnostic** \u2014 Works with backtesting.py, VectorBT, Backtrader, Zipline-Reloaded, and more coming soon.\n\n**\ud83c\udfe6 Multi-Broker** \u2014 Unified API across Interactive Brokers, Alpaca, and more coming soon.\n\n**\ud83c\udfaf Portfolio Management** \u2014 Deploy single strategies or manage hundreds across multiple accounts\n\n## \ud83d\udd04 How It Works\n\n<img src=\"examples/imgs/how-it-works.png\" alt=\"How it works\" width=\"600\"/>\n\n## Star History\n\n[![Star History Chart](https://api.star-history.com/svg?repos=stratequeue/stratequeue&type=Timeline?refresh=1)](https://www.star-history.com/#stratequeue/stratequeue&Timeline)\n\n## \u26a0\ufe0f Disclaimer \u2013 No Investment Advice\n\nStrateQueue is an open-source toolkit provided **\"as-is\" for educational and informational purposes only**.\n* It does **not** constitute investment advice, brokerage services, or a recommendation to buy or sell any financial instrument.\n* All trading involves substantial risk; **past performance is not indicative of future results**. You may lose some or all of your capital.\n* By using StrateQueue you acknowledge that **you alone are responsible for your trading decisions** and agree that the StrateQueue maintainers and contributors will **not be liable for any loss or damage** arising from the use of this software.\n* Consult a qualified financial professional before deploying live capital.\n  \n## \u00a9 License\n\nStrateQueue is released under the **[GNU Affero General Public License v3.0](LICENSE)**.\n  \n",
    "bugtrack_url": null,
    "license": "AGPL-3.0",
    "summary": "The fastest way from backtest to live trading",
    "version": "0.3.2.post0",
    "project_urls": {
        "Changelog": "https://github.com/StrateQueue/StrateQueue/releases",
        "Documentation": "https://github.com/StrateQueue/StrateQueue#readme",
        "Homepage": "https://github.com/StrateQueue/StrateQueue",
        "Issues": "https://github.com/StrateQueue/StrateQueue/issues",
        "Repository": "https://github.com/StrateQueue/StrateQueue"
    },
    "split_keywords": [
        "trading",
        " backtesting",
        " live-trading",
        " algorithmic-trading",
        " financial-data",
        " quantitative-finance",
        " strategy-signals",
        " alpaca-trading"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9052ca27269dc51334a574548d3fdc73e6ca63c7e473cea5533221a1fa148670",
                "md5": "dcdcee03e0044fae795f5a83f1a30c69",
                "sha256": "4e063bc36f8739872e1e809bf655402667dd96447a1142cb2ef1a04772dcb2d6"
            },
            "downloads": -1,
            "filename": "stratequeue-0.3.2.post0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dcdcee03e0044fae795f5a83f1a30c69",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 3401528,
            "upload_time": "2025-07-24T13:35:23",
            "upload_time_iso_8601": "2025-07-24T13:35:23.422171Z",
            "url": "https://files.pythonhosted.org/packages/90/52/ca27269dc51334a574548d3fdc73e6ca63c7e473cea5533221a1fa148670/stratequeue-0.3.2.post0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e1fde9704388b3bf7ca634884c7d61615b8923ef92e9225b49a98a9cc3a9f21a",
                "md5": "ec1a53484b831828283e5f631c5f485c",
                "sha256": "1c518a4269aa30b1f18e884078d4b6097f2a2157ea680c08cd61894184df7587"
            },
            "downloads": -1,
            "filename": "stratequeue-0.3.2.post0.tar.gz",
            "has_sig": false,
            "md5_digest": "ec1a53484b831828283e5f631c5f485c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 3349211,
            "upload_time": "2025-07-24T13:35:25",
            "upload_time_iso_8601": "2025-07-24T13:35:25.226499Z",
            "url": "https://files.pythonhosted.org/packages/e1/fd/e9704388b3bf7ca634884c7d61615b8923ef92e9225b49a98a9cc3a9f21a/stratequeue-0.3.2.post0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-24 13:35:25",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "StrateQueue",
    "github_project": "StrateQueue",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "stratequeue"
}
        
Elapsed time: 0.75257s