π 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!
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.
- StrateQueue
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()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
- 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
Install the core package:
pip install stratequeueIf 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]"stratequeue webui| 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) |
π‘οΈ 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
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.
StrateQueue is released under the GNU Affero General Public License v3.0.


