PyAlgoTrade
Event-driven Python library for backtesting, paper and live trading
๐งฉ Build it Free 05 in Backtesting ๐ NEW TODAY
4,675 0 copies ยท 7 days updated 13 Nov '23
Overview
PyAlgoTrade is a deprecated event-driven Python library for backtesting trading strategies, with paper and live Bitcoin trading through Bitstamp.
- Fordevelopers who want event-driven backtesting with CSV data in Yahoo/Google Finance, Quandl, or NinjaTrader format.
- NeedsPython 2.7/3.7, NumPy, SciPy, pytz, dateutil, requests; matplotlib for plots; ws4py and tornado for Bitstamp; tweepy for Twitter events.
- Runsan event-driven Python library (pip install pyalgotrade) with Market, Limit, Stop, and StopLimit order types.
- Limitthe project is deprecated and no longer maintained; the maintainer points to Basana instead.
Vibe it
Paste this into your AI agent. Write the first line, or take a suggestion; the copy carries your words.
Source: https://github.com/gbeced/pyalgotrade โ clone it and read its README and examples before writing anything; its documented setup beats what you remember. Stack: an event-driven Python library โ feeds, a BacktestingStrategy subclass, and a broker abstraction that paper and live trading share. Needs: Python 2.7/3.7, NumPy, SciPy, pytz, dateutil, requests; ws4py and tornado only if connecting to Bitstamp for paper/live Bitcoin trading. Start: `pip install pyalgotrade`, then work through the tutorial's bar feed and BacktestingStrategy example before writing my own. Limit: this project is deprecated and no longer maintained โ the maintainer points to Basana as the successor. Done means: you show me the backtest result for the tutorial strategy against sample data, and the strategy code you wrote. Never place a live order. Paper or testnet until I say live in this chat. Before you start, ask me: whether I still want PyAlgoTrade despite the deprecation notice or would rather start from Basana, and which data source I'm using.
More in Backtesting
All 6 โ 06
AI-Trader ๐งฉ Build it Config-driven Backtrader wrapper with 20-plus strategies and an MCP server 01
hftbacktest ๐งฉ Build it Tick-level backtester for market making on level-2 and level-3 books 02
Qlib ๐งฉ Build it Quant research platform for modelling, signal building and backtesting
1,070
4,652
3
4
48,442