๐Ÿ’ธ Sponsor the strip
REPLAUSE

PyAlgoTrade

Event-driven Python library for backtesting, paper and live trading

๐Ÿงฉ Build it Free 05 in Backtesting ๐Ÿ†• NEW TODAY
Any marketStandalonePython

by gbeced โ†’

4,675 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.

Something wrong here? Tell us โ†’