Best Backtesting Libraries (Python)

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/mltraders

Our great sponsors
  • Sonar - Write Clean Python Code. Always.
  • Zigi - Delete the most useless function ever: context switching.
  • Scout APM - Truly a developer’s best friend
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • trade

    tradetrade is a Python framework for the development of financial applications. A trade app works like a service. The user informs the items he has in stock and a series of subsequent occurrences (purchases, sales, whatsoever) with those or other items. trade then calculates the effects of those occurrences and gives back the new amounts and costs of the items in stock.

  • quantitative

    quantitative - Quantitative finance back testing library

    quantitativeQuantitative finance, and backtesting library. Quantitative is an event driven and versatile backtesting library.

  • Sonar

    Write Clean Python Code. Always.. Sonar helps you commit clean code every time. With over 225 unique rules to find Python bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • analyzer

    :chart: Python framework for real-time financial and backtesting trading strategies (by llazzaro)

    analyzer – Python framework for real-time financial and backtesting trading strategies

  • bt

    bt - flexible backtesting for Python (by pmorissette)

    btbt is a flexible backtesting framework for Python used to test quantitative trading strategies.

  • backtrader

    Python Backtesting library for trading strategies [Moved to: https://github.com/mementum/backtrader] (by backtrader)

    backtrader – Python Backtesting library for trading strategies

  • pybacktest

    Vectorized backtesting framework in Python / pandas, designed to make your backtesting easier — compact, simple and fast

    pybacktest – Vectorized backtesting framework in Python / pandas, designed to make your backtesting easier. It allows users to specify trading strategies using full power of pandas, at the same time hiding all boring things like manually calculating trades, equity, performance statistics and creating visualizations. Resulting strategy code is usable both in research and production setting.

  • zipline

    Zipline, a Pythonic Algorithmic Trading Library

    ziplineZipline is a Pythonic algorithmic trading library. It is an event-driven system that supports both backtesting and live trading.

  • Zigi

    Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

  • pyalgotrade

    Python Algorithmic Trading Library

    pyalgotradePyAlgoTrade is an event driven algorithmic trading Python library. Although the initial focus was on backtesting, paper trading is now possible

  • pandas_talib

    A Python Pandas implementation of technical analysis indicators

    pandas_talib – A Python Pandas implementation of technical analysis indicators

  • algobroker

    Algo execution engine

    algobroker – This is an execution engine for algo trading. The idea is that this python server gets requests from clients and then forwards them to the broker API.

  • PyThalesians

    Python library for backtesting trading strategies & analyzing financial markets (formerly pythalesians)

    finmarketpy – finmarketpy is a Python based library that enables you to analyze market data and also to backtest trading strategies using a simple to use API, which has pre-built templates for you to define backtest.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts