Libraries and packages
A curated list of awesome libraries, packages, strategies, books, blogs, tutorials for systematic trading.
This page lists names, links and short descriptions. The original list on GitHub is the source and belongs to its authors.
Run your first paper with Papers With Backtest
Backtesting and Live Trading >General - Event Driven Frameworks
vnpy
Python-based open source quantitative trading system development framework, officially released in January 2015, has grown step by step into a full-featured quantitative trading platform
zipline
Zipline is a Pythonic algorithmic trading library. It is an event-driven system for backtesting.
backtrader
Event driven Python Backtesting library for trading strategies
QUANTAXIS
QUANTAXIS 支持任务调度 分布式部署的 股票/期货/期权/港股/虚拟货币 数据/回测/模拟/交易/可视化/多账户 纯本地量化解决方案
QuantConnect
Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
Rqalpha
A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities
finmarketpy
Python library for backtesting trading strategies & analyzing financial markets (formerly pythalesians)
backtesting.py
Backtesting.py is a Python framework for inferring viability of trading strategies on historical (past) data. Improved upon the vision of Backtrader, and by all means surpassingly comparable to other accessible alternatives, Backtesting.py is lightweight, fast, user-friendly, intuitive,…
WonderTrader
WonderTrader——量化研发交易一站式框架
nautilus_trader
A high-performance algorithmic trading platform and event-driven backtester
PandoraTrader
High-frequency quantitative trading platform based on c++ development, supporting multiple trading APIs and cross-platform
HFTBacktest
Highly precise backtest on HFT data in Python+Numba
PyBroker
Algorithmic trading in Python with machine learning: rule based and model driven strategies, walkforward analysis and bootstrapped significance tests on the results
Hikyuu
C++/Python quantitative research framework built around reusable strategy components, with its own bar and indicator engine
barter-rs
Open source Rust framework for building event driven live trading and backtesting systems, running strategies on a near identical engine on both sides
Investing Algorithm Framework
Framework for developing, backtesting and deploying automated trading algorithms and trading bots
qf-lib
Modular event driven backtester with data vendor and broker integrations, portfolio construction tools and automated PDF reporting
trade-frame
C++17 library and sample applications for automated trading of equities, futures, currencies, ETFs and options on IQFeed and Interactive Brokers data
QuantFabric
Linux/C++ mid and high frequency trading system for the Chinese futures, stock and bond exchanges
aat
An asynchronous, event-driven framework for writing algorithmic trading strategies in python with optional acceleration in C++. It is designed to be modular and extensible, with support for a wide variety of instruments and strategies, live trading across (and between) multiple exchanges.
sdoosa-algo-trade-python
This project is mainly for newbies into algo trading who are interested in learning to code their own trading algo using python interpreter.
lumibot
A very simple yet useful backtesting and sample based live trading framework (a bit slow to run...)
quanttrader
Backtest and live trading in Python. Event based. Similar to backtesting.py.
gobacktest
A Go implementation of event-driven backtesting framework
PineForge
Transpiles PineScript v6 strategies to C++ and runs deterministic offline backtests on user-provided OHLCV data.
FlashFunk
High Performance Runtime in Rust
Backtesting and Live Trading >General - Vector Based Frameworks
QTradeX
A powerful and flexible Python framework for designing, backtesting, optimizing, and deploying algotrading bots
vectorbt
vectorbt takes a novel approach to backtesting: it operates entirely on pandas and NumPy objects, and is accelerated by Numba to analyze any data at speed and scale. This allows for testing of many thousands of strategies in seconds.
pysystemtrade
Systematic Trading in python from book Systematic Trading by Rob Carver
bt
Flexible backtesting for Python based on Algo and Strategy Tree
ml-quant-trading
PyTorch research stack for ML multi-factor trading with 213 factors, bias correction, portfolio optimization, vectorized backtesting, and public validation reports
Backtesting and Live Trading >Cryptocurrencies
Freqtrade
Freqtrade is a free and open source crypto trading bot written in Python. It is designed to support all major exchanges and be controlled via Telegram. It contains backtesting, plotting and money management tools as well as strategy optimization by machine learning.
Jesse
Jesse is an advanced crypto trading framework which aims to simplify researching and defining trading strategies.
OctoBot
Cryptocurrency trading bot for TA, arbitrage and social trading with an advanced web interface
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
basana
Python async and event driven framework for algorithmic trading, with a focus on crypto currencies
openlimits
A Rust high performance cryptocurrency trading API with support for multiple exchanges and language wrappers.
bTrader
Triangle arbitrage trading bot for Binance
crypto-crawler-rs
Crawl orderbook and trade messages from crypto exchanges
Hummingbot
A client for crypto market making
cryptotrader-core
Simple to use Crypto Exchange REST API client in rust.
Trading bots
Blackbird
Blackbird Bitcoin Arbitrage: a long/short market-neutral strategy
bitcoin-arbitrage
Bitcoin arbitrage - opportunity detector
ThetaGang
ThetaGang is an IBKR bot for collecting money
czsc
缠中说禅技术分析工具;缠论;股票;期货;Quant;量化交易
R2 Bitcoin Arbitrager
R2 Bitcoin Arbitrager is an automatic arbitrage trading system powered by Node.js + TypeScript
Intelligent Trading Bot
Intelligent Trading Bot: Automatically generating signals and trading based on machine learning and feature engineering
analyzingalpha
Implementation of simple strategies
PyTrendFollow
PyTrendFollow - systematic futures trading using trend following
TradeSight
AI-powered algorithmic trading platform with RSI/MACD signals, overnight strategy tournaments, paper trading via Alpaca, multi-stock scanning, and web dashboard
PRISM-INSIGHT
AI-powered stock analysis with 13 specialized agents, automated trading via KIS API (Korean & US markets)
Analytics >Indicators
ta-lib
Perform technical analysis of financial market data
go-tart
A Go implementation of the [ta-lib]((https://github.com/mrjbq7/ta-lib) with streaming update support
pandas-ta
Pandas Technical Analysis (Pandas TA) is an easy to use library that leverages the Pandas package with more than 130 Indicators and Utility functions and more than 60 TA Lib Candlestick Patterns
ta-rust
Technical analysis library for Rust language
kand
Technical analysis library written in Rust with Python and WASM bindings, exposing both batch and incremental streaming updates
Analytics >Metrics computation
quantstats
Portfolio analytics for quants, written in Python
ffn
A financial function library for Python
Analytics >Optimization
skfolio
Portfolio optimization built on top of scikit-learn. It provides a unified interface and sklearn compatible tools to build, tune and cross-validate portfolio models.
PyPortfolioOpt
Financial portfolio optimizations in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity
Riskfolio-Lib
Portfolio Optimization and Quantitative Strategic Asset Allocation in Python
empyrial
Empyrial is a Python-based open-source quantitative investment library dedicated to financial institutions and retail investors, officially released in March 2021
cvxportfolio
Portfolio optimization and back-testing from the Stanford convex optimization group, implementing the multi-period framework of Boyd et al.
Deepdow
Python package connecting portfolio optimization and deep learning. Its goal is to facilitate research of networks that perform weight allocation in one forward pass.
spectre
Portfolio Optimization and Quantitative Strategic Asset Allocation in Python
Analytics >Pricing
tf-quant-finance
High-performance TensorFlow library for quantitative finance from Google
FinancePy
A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives
PyQL
Python wrapper of the famous pricing library QuantLib
Analytics >Risk
Broker APIs
ccxt
A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges
Ib_insync
Python sync/async framework for Interactive Brokers.
pmxt
Unified prediction market trading API across Polymarket, Kalshi and other venues, in the spirit of ccxt
Coinnect
Coinnect is a Rust library aiming to provide a complete access to main crypto currencies exchanges via REST API.
Data Sources >General
Fincept Terminal
Fincept Terminal is a comprehensive CLI tool that provides financial insights, market analysis, and a host of other financial services such as technical analysis, fundamental analysis, sentiment analysis, quantitative analysis, and economic data services.
OpenBB Terminal
Investment Research for Everyone, Anywhere.
yfinance
yfinance offers a threaded and Pythonic way to download market data from Yahoo!Ⓡ finance.
AkShare
AKShare is an elegant and simple financial data interface library for Python, built for human beings!
FinanceDatabase
Database of 300,000+ symbols covering equities, ETFs, funds, indices, currencies, cryptocurrencies and money markets
FinanceToolkit
200+ financial metrics, ratios, technical indicators and risk measures computed from Financial Modeling Prep and Yahoo Finance data
pandas-datareader
Up to date remote data access for pandas, works for multiple versions of pandas.
edgartools
SEC EDGAR filings in Python: XBRL fundamentals, 13F institutional holdings, insider transactions (Forms 3/4/5) and 8-K events
Quandl
Get millions of financial and economic dataset from hundreds of publishers via a single free API.
findatapy
findatapy creates an easy to use Python API to download market data from many sources including Quandl, Bloomberg, Yahoo, Google etc. using a unified high level interface.
Investpy
Financial Data Extraction from Investing.com with Python
Fundamental Analysis Data
Fully-fledged Fundamental Analysis package capable of collecting 20 years of Company Profiles, Financial Statements, Ratios and Stock Data of 20.000+ companies.
Wallstreet
Wallstreet: Real time Stock and Option tools
pwb-toolbox
Loader for the 32 Papers With Backtest datasets on Hugging Face: daily prices back to 1962 for stocks, ETFs, indices, currencies and commodities, sovereign yield curves, quarterly fundamentals, FRED-MD macro series, and 5.7 billion rows of 1-minute US equity bars. Cards and schemas are open to…
Data Sources >Cryptocurrencies
Cryptofeed
Cryptocurrency Exchange Websocket Data Feed Handler with Asyncio
Gekko-Datasets
Gekko trading bot dataset dumps. Download and use history files in SQLite format.
CryptoInscriber
A live crypto currency historical trade data blotter. Download live historical trade data from any crypto exchange.
Crypto Lake
High frequency order book & trade data for crypto
Data Science
TensorFlow
Fundamental algorithms for scientific computing in Python
Scikit-learn
Machine learning in Python
Pandas
Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
JAX
Composable transformations of Python+NumPy programs: automatic differentiation, vectorization and JIT compilation to GPU/TPU
PyMC
Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Aesara
Cvxpy
A Python-embedded modeling language for convex optimization problems.
Databases
DuckDB
In-process analytical SQL database that queries Parquet and Arrow files directly, a common backend for research datasets
Marketstore
DataFrame Server for Financial Timeseries Data
Tectonicdb
Tectonicdb is a fast, highly compressed standalone database and streaming protocol for order book ticks.
ArcticDB (Man Group)
High performance datastore for time series and tick data
PyStore
Fast datastore for Pandas time series data, built on Dask and Parquet
Graph Computation
Ray
An open source framework that provides a simple, universal API for building distributed applications.
Incremental (JaneStreet)
Incremental is a library that gives you a way of building complex computations that can update efficiently in response to their inputs changing, inspired by the work of Umut Acar et. al. on self-adjusting computations. Incremental can be useful in a number of applications
csp (Point72)
High performance reactive stream processing library written in C++ and Python, where the same graph runs in backtest and in real time
Man MDF
Data-flow programming toolkit for Python
GraphKit
A lightweight Python module for creating and running ordered graphs of computations.
Tributary
Streaming reactive and dataflow graphs in Python
Machine Learning
AI Hedge Fund
Educational hedge fund simulator where a team of LLM agents modelled on well known investors debates and takes positions
QLib (Microsoft)
Qlib is an AI-oriented quantitative investment platform, which aims to realize the potential, empower the research, and create the value of AI technologies in quantitative investment. With Qlib, you can easily try your ideas to create better Quant investment strategies. An increasing number of…
FinGPT
Open source financial large language models, with the fine-tuned weights released on HuggingFace
Machine Learning for Trading
Code for Machine Learning for Trading (3rd edition), from data sourcing and alpha factor research to live execution
Qbot
AI powered quantitative investment platform covering data collection, strategy research, backtesting and live trading
FinRL
FinRL is the first open-source framework to demonstrate the great potential of applying deep reinforcement learning in quantitative finance.
MlFinLab (Hudson & Thames)
MlFinLab helps portfolio managers and traders who want to leverage the power of machine learning by providing reproducible, interpretable, and easy to use tools.
TradingGym
Trading and Backtesting environment for training reinforcement learning agent or simple rule base algo.
AlphaGen
Generating sets of formulaic alpha factors with reinforcement learning
Stock Trading Bot using Deep Q-Learning
Stock Trading Bot using Deep Q-Learning
TimeSeries Analysis
Facebook Prophet
Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
statsmodels
Python module that allows users to explore data, estimate statistical models, and perform statistical tests.
Visualization
Perspective
Data visualization and analytics component built for large and streaming datasets, originally open sourced by J.P. Morgan
D-Tale (Man Group)
D-Tale is the combination of a Flask back-end and a React front-end to bring you an easy way to view & analyze Pandas data structures.
mplfinance
Financial Markets Data Visualization using Matplotlib
btplotting
btplotting provides plotting for backtests, optimization results and live data from backtrader.
Equities
Bonds
Commodities
Currencies
Cryptocurrencies
Derivatives
Multi-asset
Beginner
Biography
Coding
Crypto
General
High Frequency Trading
Machine Learning
Videos
Blogs
Courses
AI in Finance
Learn Fintech Online.
Algorithmic Trading for Cryptocurrencies in Python
A simple yet practical experiment tutorial for cryto trading.
Hudson and Thames Quantitative Research
Our mission is to promote the scientific method within investment management by codifying frameworks, algorithms, and best practices.
Udacity, Georgia Tech - Machine Learning for Trading
Interesting class for acquiring basic knowledge of machine learning applied to trading and some AI and finance concepts. I especially liked the section on Q-Learning.
Related lists in Books
See categoryList of Free Learning Resources In Many Languages
EbookFoundation/free-programming-books
:books: Freely available programming books
Awesome Go Books
dariubs/GoBooks
List of Golang books
Awesome Devbook
738/awesome-devbook
📕 국내 개발 도서 리스트
awesome-fantasy
RichardLitt/awesome-fantasy
:european_castle: Fantasy literature worth reading
A Critical Reading list on Tech && (Politics × Society × Ethics)
chobeat/awesome-critical-tech-reading-list
A reading list for the modern critical programmer
Mind Expanding Books
hackerkid/Mind-Expanding-Books
:books: Find your next book to read!