Skip to content

wsj3000/StrateQueue

Β 
Β 

StrateQueue Tweet

PyPI version PyPI status Python 3.10+ License: AGPL-3.0 GitHub contributors Downloads GitHub forks GitHub watchers GitHub stars

πŸ“– Documentation | πŸš€ Quick Start Guide | πŸ’¬ Community

The fastest way from backtest to live trading Stargazers repo roster for @StrateQueue/StrateQueue

⭐️ 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

🎯 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

Quick Start Demo

πŸ› οΈ 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

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

How it works

Star History

Star History Chart

⚠️ 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.

About

The fastest way from backtest to live trading.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.2%
  • JavaScript 3.8%