The fastest way from backtest to live trading
Project description
StrateQueue 
๐ Documentation | ๐ Quick Start Guide | ๐ฌ Community
โญ๏ธ If StrateQueue saved you time or taught you something, consider starring us on GitHub โ it helps more quants discover the project!
๐ 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
๐ฏ Quick-start: From Backtest to Live in One Command
Your existing backtest:
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:
pip install stratequeue
If you need support for a specific engine or want everything in one go:
# 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]"
# BT support
pip install "stratequeue[bt]"
# Everything
pip install "stratequeue[all]"
Setup
Dashboard (Experimental)
stratequeue webui
๐ง Supported Integrations
| Integration | Status |
|---|---|
| Backtesting Engines | |
| โโ backtesting.py | โ Implemented |
| โโ VectorBT | โ Implemented |
| โโ Backtrader | โ Implemented |
| โโ BT | โ 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, bt, and more coming soon.
๐ฆ Multi-Broker โ Unified API across IBKR, Alpaca, and 250+ more brokers.
๐ฏ Portfolio Management โ Deploy single strategies or manage hundreds across multiple accounts
๐ How It Works
Star History
โ ๏ธ 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stratequeue-0.5.1.tar.gz.
File metadata
- Download URL: stratequeue-0.5.1.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ffbb2283b66651e4af7f4f89c085e45c0763d40dbcb30bd3a4631a8b9f90793
|
|
| MD5 |
73d3194be524eb3e3a0e86d18973345d
|
|
| BLAKE2b-256 |
f58675114d67a3814c5956ffaa99c5868da858f6fd3aed257a85c77fa38bb901
|
Provenance
The following attestation bundles were made for stratequeue-0.5.1.tar.gz:
Publisher:
publish.yml on StrateQueue/StrateQueue
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stratequeue-0.5.1.tar.gz -
Subject digest:
5ffbb2283b66651e4af7f4f89c085e45c0763d40dbcb30bd3a4631a8b9f90793 - Sigstore transparency entry: 418739358
- Sigstore integration time:
-
Permalink:
StrateQueue/StrateQueue@23ca4b5f60ce51150feae5bde34d5861ffabfd96 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/StrateQueue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@23ca4b5f60ce51150feae5bde34d5861ffabfd96 -
Trigger Event:
push
-
Statement type:
File details
Details for the file stratequeue-0.5.1-py3-none-any.whl.
File metadata
- Download URL: stratequeue-0.5.1-py3-none-any.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7342964862f2d57d81e2bcfd025d66ce007d07d94e9ba6025cc0e33de526321f
|
|
| MD5 |
4419c5ea1bacc4ec8cef538b402ae0fa
|
|
| BLAKE2b-256 |
913d9de9230c257a17397f29c01a8c652ba69fea61409d7c58ff3f0ab9739f90
|
Provenance
The following attestation bundles were made for stratequeue-0.5.1-py3-none-any.whl:
Publisher:
publish.yml on StrateQueue/StrateQueue
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stratequeue-0.5.1-py3-none-any.whl -
Subject digest:
7342964862f2d57d81e2bcfd025d66ce007d07d94e9ba6025cc0e33de526321f - Sigstore transparency entry: 418739385
- Sigstore integration time:
-
Permalink:
StrateQueue/StrateQueue@23ca4b5f60ce51150feae5bde34d5861ffabfd96 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/StrateQueue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@23ca4b5f60ce51150feae5bde34d5861ffabfd96 -
Trigger Event:
push
-
Statement type: