# StrateQueue [](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)
[](https://badge.fury.io/py/stratequeue)
[](https://pypi.python.org/pypi/stratequeue/)
[](https://www.python.org/downloads/)
[](https://github.com/StrateQueue/StrateQueue/blob/main/LICENSE)
[](https://github.com/StrateQueue/StrateQueue/graphs/contributors)
[](https://pepy.tech/project/stratequeue)
[](https://github.com/StrateQueue/StrateQueue/stargazers)
<!---[](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**
[](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

## ๐ ๏ธ 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

### 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
[](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 [](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[](https://badge.fury.io/py/stratequeue)\n[](https://pypi.python.org/pypi/stratequeue/)\n[](https://www.python.org/downloads/)\n[](https://github.com/StrateQueue/StrateQueue/blob/main/LICENSE)\n[](https://github.com/StrateQueue/StrateQueue/graphs/contributors)\n[](https://pepy.tech/project/stratequeue)\n[](https://github.com/StrateQueue/StrateQueue/stargazers)\n<!---[](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[](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\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\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[](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"
}