Awesome Quant Overview
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance)
🏠 Home · 🔥 Feed · 📮 Subscribe · ❤️ Sponsor · 😺 wilsonfreitas/awesome-quant · ⭐ 18K · 🏷️ Finance
Awesome Quant
A curated list of insanely awesome libraries, packages and resources for Quants (Quantitative Finance).
Languages
- Python
- R
- Matlab
- Julia
- Java
- JavaScript
- Haskell
- Scala
- Ruby
- Elixir/Erlang
- Golang
- CPP
- CSharp
- Rust
- Frameworks
- Reproducing Works
Python
Numerical Libraries & Data Structures
- numpy - NumPy is the fundamental package for scientific computing with Python.
- scipy - SciPy (pronounced “Sigh Pie”) is a Python-based ecosystem of open-source software for mathematics, science, and engineering.
- pandas - pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language.
- polars - Polars is a blazingly fast DataFrame library for manipulating structured data.
- quantdsl (⭐344) - Domain specific language for quantitative analytics in finance and trading.
- statistics - Builtin Python library for all basic statistical calculations.
- sympy - SymPy is a Python library for symbolic mathematics.
- pymc3 - Probabilistic Programming in Python: Bayesian Modeling and Probabilistic Machine Learning with Theano.
- modelx - Python reimagination of spreadsheets as formula-centric objects that are interoperable with pandas.
- ArcticDB (⭐1.5k) - High performance datastore for time series and tick data.
Financial Instruments and Pricing
- OpenBB Terminal (⭐34k) - Terminal for investment research for everyone.
- Fincept Terminal (⭐22) - Advance Data Based A.I Terminal for all Types of Financial Asset Research.
- PyQL (⭐1k) - QuantLib's Python port.
- pyfin (⭐307) - Basic options pricing in Python. ARCHIVED
- vollib (⭐681) - vollib is a python library for calculating option prices, implied volatility and greeks.
- QuantPy (⭐686) - A framework for quantitative finance In python.
- Finance-Python (⭐747) - Python tools for Finance.
- ffn (⭐2k) - A financial function library for Python.
- pynance (⭐317) - Lightweight Python library for assembling and analyzing financial data.
- tia (⭐409) - Toolkit for integration and analysis.
- hasura/base-python-dash - Hasura quick start to deploy Dash framework. Written on top of Flask, Plotly.js, and React.js, Dash is ideal for building data visualization apps with highly custom user interfaces in pure Python.
- hasura/base-python-bokeh - Hasura quick start to visualize data with bokeh library.
- pysabr (⭐463) - SABR model Python implementation.
- FinancePy (⭐2.1k) - A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
- gs-quant (⭐7.9k) - Python toolkit for quantitative finance
- willowtree (⭐240) - Robust and flexible Python implementation of the willow tree lattice for derivatives pricing.
- financial-engineering (⭐371) - Applications of Monte Carlo methods to financial engineering projects, in Python.
- optlib (⭐661) - A library for financial options pricing written in Python.
- tf-quant-finance (⭐4.6k) - High-performance TensorFlow library for quantitative finance.
- Q-Fin (⭐396) - A Python library for mathematical finance.
- Quantsbin (⭐500) - Tools for pricing and plotting of vanilla option prices, greeks and various other analysis around them.
- finoptions (⭐208) - Complete python implementation of R package fOptions with partial implementation of fExoticOptions for pricing various options.
- pypme (⭐10) - PME (Public Market Equivalent) calculation.
- AbsBox (⭐39) - A Python based library to model cashflow for structured product like Asset-backed securities (ABS) and Mortgage-backed securities (MBS).
- Intrinsic-Value-Calculator (⭐31) - A Python tool for quick calculations of a stock's fair value using Discounted Cash Flow analysis.
- Kelly-Criterion (⭐92) - Kelly Criterion implemented in Python to size portfolios based on J. L. Kelly Jr's formula.
- rateslib (⭐154) - A fixed income library for pricing bonds and bond futures, and derivatives such as IRS, cross-currency and FX swaps.
- fypy (⭐80) - Vanilla and exotic option pricing library to support quantitative R&D. Focus on pricing interesting/useful models and contracts (including and beyond Black-Scholes), as well as calibration of financial models to market data.
Indicators
- pandas_talib (⭐748) - A Python Pandas implementation of technical analysis indicators.
- finta (⭐2.1k) - Common financial technical analysis indicators implemented in Pandas.
- Tulipy (⭐93) - Financial Technical Analysis Indicator Library (Python bindings for tulipindicators (⭐849))
- lppls (⭐360) - A Python module for fitting the Log-Periodic Power Law Singularity (LPPLS) model.
- talipp (⭐397) - Incremental technical analysis library for Python.
- streaming_indicators (⭐68) - A python library for computing technical analysis indicators on streaming data.
Trading & Backtesting
- skfolio (⭐1.3k) - Python library for 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.
- Investing algorithm framework (⭐179) - Framework for developing, backtesting, and deploying automated trading algorithms.
- QSTrader (⭐3k) - QSTrader backtesting simulation engine.
- Blankly (⭐2.1k) - Fully integrated backtesting, paper trading, and live deployment.
- TA-Lib (⭐9.8k) - Python wrapper for TA-Lib (http://ta-lib.org/).
- zipline (⭐18k) - Pythonic algorithmic trading library.
- zipline-reloaded (⭐1.2k) - Zipline, a Pythonic Algorithmic Trading Library.
- QuantSoftware Toolkit (⭐467) - Python-based open source software framework designed to support portfolio construction and management.
- quantitative (⭐63) - Quantitative finance, and backtesting library.
- analyzer (⭐213) - Python framework for real-time financial and backtesting trading strategies.
- bt (⭐2.3k) - Flexible Backtesting for Python.
- backtrader (⭐15k) - Python Backtesting library for trading strategies.
- pythalesians (⭐61) - Python library to backtest trading strategies, plot charts, seamlessly download market data, analyze market patterns etc.
- pybacktest (⭐805) - Vectorized backtesting framework in Python / pandas, designed to make your backtesting easier.
- pyalgotrade (⭐4.4k) - Python Algorithmic Trading Library.
- basana (⭐592) - A Python async and event driven framework for algorithmic trading, with a focus on crypto currencies.
- tradingWithPython - A collection of functions and classes for Quantitative trading.
- Pandas TA (⭐5.5k) - Pandas TA is an easy to use Python 3 Pandas Extension with 115+ Indicators. Easily build Custom Strategies.
- ta (⭐4.4k) - Technical Analysis Library using Pandas (Python)
- algobroker (⭐89) - This is an execution engine for algo trading.
- pysentosa - Python API for sentosa trading system.
- finmarketpy (⭐3.5k) - Python library for backtesting trading strategies and analyzing financial markets.
- binary-martingale (⭐47) - Computer program to automatically trade binary options martingale style.
- fooltrader (⭐1.1k) - the project using big-data technology to provide an uniform way to analyze the whole market.
- zvt (⭐3.3k) - the project using sql, pandas to provide an uniform and extendable way to record data, computing factors, select securities, backtesting, realtime trading and it could show all of them in clearly charts in realtime.
- pylivetrader (⭐665) - zipline-compatible live trading library.
- pipeline-live (⭐204) - zipline's pipeline capability with IEX for live trading.
- zipline-extensions (⭐18) - Zipline extensions and adapters for QuantRocket.
- moonshot (⭐204) - Vectorized backtester and trading engine for QuantRocket based on Pandas.
- PyPortfolioOpt (⭐4.5k) - Financial portfolio optimization in python, including classical efficient frontier and advanced methods.
- Eiten (⭐2.8k) - Eiten is an open source toolkit by Tradytics that implements various statistical and algorithmic investing strategies such as Eigen Portfolios, Minimum Variance Portfolios, Maximum Sharpe Ratio Portfolios, and Genetic Algorithms based Portfolios.
- riskparity.py (⭐289) - fast and scalable design of risk parity portfolios with TensorFlow 2.0
- mlfinlab (⭐4k) - Implementations regarding "Advances in Financial Machine Learning" by Marcos Lopez de Prado. (Feature Engineering, Financial Data Structures, Meta-Labeling)
- pyqstrat (⭐364) - A fast, extensible, transparent python library for backtesting quantitative strategies.
- NowTrade (⭐104) - Python library for backtesting technical/mechanical strategies in the stock and currency markets.
- pinkfish (⭐270) - A backtester and spreadsheet library for security analysis.
- aat (⭐677) - Async Algorithmic Trading Engine
- Backtesting.py - Backtest trading strategies in Python
- catalyst (⭐2.5k) - An Algorithmic Trading Library for Crypto-Assets in Python
- quantstats (⭐5k) - Portfolio analytics for quants, written in Python
- qtpylib (⭐2.2k) - QTPyLib, Pythonic Algorithmic Trading http://qtpylib.io
- Quantdom (⭐718) - Python-based framework for backtesting trading strategies & analyzing financial markets [GUI :neckbeard:]
- freqtrade (⭐31k) - Free, open source crypto trading bot
- algorithmic-trading-with-python (⭐2.8k) - Free
pandas
andscikit-learn
resources for trading simulation, backtesting, and machine learning on financial data. - DeepDow (⭐923) - Portfolio optimization with deep learning
- Qlib (⭐16k) - An AI-oriented Quantitative Investment Platform by Microsoft. Full ML pipeline of data processing, model training, back-testing; and covers the entire chain of quantitative investment: alpha seeking, risk modeling, portfolio optimization, and order execution.
- machine-learning-for-trading (⭐13k) - Code and resources for Machine Learning for Algorithmic Trading
- AlphaPy (⭐1.2k) - Automated Machine Learning [AutoML] with Python, scikit-learn, Keras, XGBoost, LightGBM, and CatBoost
- jesse (⭐5.8k) - An advanced crypto trading bot written in Python
- rqalpha (⭐5.4k) - A extendable, replaceable Python algorithmic backtest && trading framework supporting multiple securities.
- FinRL-Library (⭐10k) - A Deep Reinforcement Learning Library for Automated Trading in Quantitative Finance. NeurIPS 2020.
- bulbea (⭐2.1k) - Deep Learning based Python Library for Stock Market Prediction and Modelling.
- ib_nope (⭐30) - Automated trading system for NOPE strategy over IBKR TWS.
- OctoBot (⭐3.4k) - Open source cryptocurrency trading bot for high frequency, arbitrage, TA and social trading with an advanced web interface.
- bta-lib (⭐453) - Technical Analysis library in pandas for backtesting algotrading and quantitative analysis.
- Stock-Prediction-Models (⭐8.1k) - Gathers machine learning and deep learning models for Stock forecasting including trading bots and simulations.
- TuneTA (⭐414) - TuneTA optimizes technical indicators using a distance correlation measure to a user defined target feature such as next day return.
- AutoTrader (⭐999) - A Python-based development platform for automated trading systems - from backtesting to optimization to livetrading.
- fast-trade (⭐377) - A library built with backtest portability and performance in mind for backtest trading strategies.
- qf-lib (⭐560) - QF-Lib is a Python library that provides high quality tools for quantitative finance.
- tda-api (⭐1.3k) - Gather data and trade equities, options, and ETFs via TDAmeritrade.
- vectorbt (⭐4.4k) - Find your trading edge, using a powerful toolkit for backtesting, algorithmic trading, and research.
- Lean (⭐9.9k) - Lean Algorithmic Trading Engine by QuantConnect (Python, C#).
- fast-trade (⭐377) - Low code backtesting library utilizing pandas and technical analysis indicators.
- pysystemtrade (⭐2.7k) - pysystemtrade is the open source version of Robert Carver's backtesting and trading engine that implements systems according to the framework outlined in his book "Systematic Trading", which is further developed on his blog.
- pytrendseries (⭐126) - Detect trend in time series, drawdown, drawdown within a constant look-back window , maximum drawdown, time underwater.
- PyLOB (⭐180) - Fully functioning fast Limit Order Book written in Python.
- PyBroker (⭐2k) - Algorithmic Trading with Machine Learning.
- OctoBot Script (⭐20) - A quant framework to create cryptocurrencies strategies - from backtesting to optimization to livetrading.
- hftbacktest (⭐2k) - A high-frequency trading and market-making backtesting tool accounts for limit orders, queue positions, and latencies, utilizing full tick data for trades and order books.
- vnpy (⭐26k) - VeighNa is a Python-based open source quantitative trading system development framework.
- Intelligent Trading Bot (⭐1.1k) - Automatically generating signals and trading based on machine learning and feature engineering
- fastquant (⭐1.5k) - fastquant allows you to easily backtest investment strategies with as few as 3 lines of python code.
- nautilus_trader (⭐2.2k) - A high-performance algorithmic trading platform and event-driven backtester.
- YABTE (⭐3) - Yet Another (Python) BackTesting Engine.
- Trading Strategy (⭐63) - TradingStrategy.ai is a market data, backtesting, live trading and investor management framework for decentralised finance
- Hikyuu (⭐2.2k) - A base on Python/C++ open source high-performance quant framework for faster analysis and backtesting, contains the complete trading system components for reuse and combination.
Risk Analysis
- QuantLibRisks (⭐10) - Fast risks with QuantLib
- XAD (⭐10) - Automatic Differentation (AAD) Library
- pyfolio (⭐5.7k) - Portfolio and risk analytics in Python.
- empyrical (⭐1.3k) - Common financial risk and performance metrics.
- fecon235 (⭐1.1k) - Computational tools for financial economics include: Gaussian Mixture model of leptokurtotic risk, adaptive Boltzmann portfolios.
- finance - Financial Risk Calculations. Optimized for ease of use through class construction and operator overload.
- qfrm - Quantitative Financial Risk Management: awesome OOP tools for measuring, managing and visualizing risk of financial instruments and portfolios.
- visualize-wealth (⭐138) - Portfolio construction and quantitative analysis.
- VisualPortfolio (⭐103) - This tool is used to visualize the performance of a portfolio.
- universal-portfolios (⭐777) - Collection of algorithms for online portfolio selection.
- FinQuant (⭐1.4k) - A program for financial portfolio management, analysis and optimization.
- Empyrial (⭐942) - Portfolio's risk and performance analytics and returns predictions.
- risktools (⭐27) - Risk tools for use within the crude and crude products trading space with partial implementation of R's PerformanceAnalytics.
- Riskfolio-Lib (⭐3.1k) - Portfolio Optimization and Quantitative Strategic Asset Allocation in Python.
- empyrical-reloaded (⭐54) - Common financial risk and performance metrics. empyrical (⭐1.3k) fork.
- pyfolio-reloaded (⭐389) - Portfolio and risk analytics in Python. pyfolio (⭐5.7k) fork.
- fortitudo.tech (⭐218) - Conditional Value-at-Risk (CVaR) portfolio optimization and Entropy Pooling views / stress-testing in Python.
Factor Analysis
- alphalens (⭐3.4k) - Performance analysis of predictive alpha factors.
- alphalens-reloaded (⭐322) - Performance analysis of predictive (alpha) stock factors.
- Spectre (⭐647) - GPU-accelerated Factors analysis library and Backtester
Sentiment Analysis
- Asset News Sentiment Analyzer (⭐116) - Sentiment analysis and report generation package for financial assets and securities utilizing GPT models.
Quant Research Environment
- Jupyter Quant (⭐8) - A dockerized Jupyter quant research environment with preloaded tools for quant analysis, statsmodels, pymc, arch, py_vollib, zipline-reloaded, PyPortfolioOpt, etc.
Time Series
- ARCH (⭐1.3k) - ARCH models in Python.
- statsmodels - Python module that allows users to explore data, estimate statistical models, and perform statistical tests.
- dynts (⭐86) - Python package for timeseries analysis and manipulation.
- PyFlux (⭐2.1k) - Python library for timeseries modelling and inference (frequentist and Bayesian) on models.
- tsfresh (⭐8.5k) - Automatic extraction of relevant features from time series.
- hasura/quandl-metabase - Hasura quickstart to visualize Quandl's timeseries datasets with Metabase.
- Facebook Prophet (⭐19k) - Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
- tsmoothie (⭐742) - A python library for time-series smoothing and outlier detection in a vectorized way.
- pmdarima (⭐1.6k) - A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.
- gluon-ts (⭐4.6k) - vProbabilistic time series modeling in Python.
- functime (⭐1k) - Time-series machine learning at scale. Built with Polars for embarrassingly parallel feature extraction and forecasts on panel data.
Calendars
- exchange_calendars (⭐442) - Stock Exchange Trading Calendars.
- bizdays (⭐80) - Business days calculations and utilities.
- pandas_market_calendars (⭐802) - Exchange calendars to use with pandas for trading applications.
Data Sources
- yfinance (⭐15k) - Yahoo! Finance market data downloader (+faster Pandas Datareader)
- findatapy (⭐1.7k) - Python library to download market data via Bloomberg, Quandl, Yahoo etc.
- googlefinance (⭐714) - Python module to get real-time stock data from Google Finance API.
- yahoo-finance (⭐1.4k) - Python module to get stock data from Yahoo! Finance.
- pandas-datareader (⭐2.9k) - Python module to get data from various sources (Google Finance, Yahoo Finance, FRED, OECD, Fama/French, World Bank, Eurostat...) into Pandas datastructures such as DataFrame, Panel with a caching mechanism.
- pandas-finance (⭐151) - High level API for access to and analysis of financial data.
- pyhoofinance (⭐9) - Rapidly queries Yahoo Finance for multiple tickers and returns typed data for analysis.
- yfinanceapi (⭐9) - Finance API for Python.
- yql-finance (⭐16) - yql-finance is simple and fast. API returns stock closing prices for current period of time and current stock ticker (i.e. APPL, GOOGL).
- ystockquote (⭐534) - Retrieve stock quote data from Yahoo Finance.
- wallstreet (⭐1.4k) - Real time stock and option data.
- stock_extractor (⭐34) - General Purpose Stock Extractors from Online Resources.
- Stockex (⭐33) - Python wrapper for Yahoo! Finance API.
- finsymbols (⭐110) - Obtains stock symbols and relating information for SP500, AMEX, NYSE, and NASDAQ.
- FRB (⭐164) - Python Client for FRED® API.
- inquisitor (⭐40) - Python Interface to Econdb.com API.
- yfi (⭐2) - Yahoo! YQL library.
- chinesestockapi - Python API to get Chinese stock price.
- exchange (⭐16) - Get current exchange rate.
- ticks (⭐16) - Simple command line tool to get stock ticker data.
- pybbg (⭐53) - Python interface to Bloomberg COM APIs.
- ccy (⭐81) - Python module for currencies.
- tushare - A utility for crawling historical and Real-time Quotes data of China stocks.
- jsm - Get the japanese stock market data.
- cn_stock_src (⭐34) - Utility for retrieving basic China stock data from different sources.
- coinmarketcap (⭐438) - Python API for coinmarketcap.
- after-hours (⭐34) - Obtain pre market and after hours stock prices for a given symbol.
- bronto-python - Bronto API Integration for Python.
- pytdx (⭐1.3k) - Python Interface for retrieving chinese stock realtime quote data from TongDaXin Nodes.
- pdblp (⭐241) - A simple interface to integrate pandas and the Bloomberg Open API.
- tiingo (⭐252) - Python interface for daily composite prices/OHLC/Volume + Real-time News Feeds, powered by the Tiingo Data Platform.
- iexfinance (⭐648) - Python Interface for retrieving real-time and historical prices and equities data from The Investor's Exchange.
- pyEX (⭐408) - Python interface to IEX with emphasis on pandas, support for streaming data, premium data, points data (economic, rates, commodities), and technical indicators.
- alpaca-trade-api (⭐1.7k) - Python interface for retrieving real-time and historical prices from Alpaca API as well as trade execution.
- metatrader5 - API Connector to MetaTrader 5 Terminal
- akshare (⭐9.5k) - AkShare is an elegant and simple financial data interface library for Python, built for human beings! https://akshare.readthedocs.io
- yahooquery (⭐789) - Python interface for retrieving data through unofficial Yahoo Finance API.
- investpy (⭐1.7k) - Financial Data Extraction from Investing.com with Python! https://investpy.readthedocs.io/
- yliveticker (⭐145) - Live stream of market data from Yahoo Finance websocket.
- bbgbridge (⭐1) - Easy to use Bloomberg Desktop API wrapper for Python.
- alpha_vantage (⭐4.3k) - A python wrapper for Alpha Vantage API for financial data.
- FinanceDataReader (⭐1.2k) - Open Source Financial data reader for U.S, Korean, Japanese, Chinese, Vietnamese Stocks
- pystlouisfed (⭐13) - Python client for Federal Reserve Bank of St. Louis API - FRED, ALFRED, GeoFRED and FRASER.
- python-bcb (⭐79) - Python interface to Brazilian Central Bank web services.
- market-prices (⭐75) - Create meaningful OHLCV datasets from knowledge of exchange-calendars (⭐442) (works out-the-box with data from Yahoo Finance).
- tardis-python (⭐114) - Python interface for Tardis.dev high frequency crypto market data
- lake-api (⭐29) - Python interface for Crypto Lake high frequency crypto market data
- tessa (⭐44) - simple, hassle-free access to price information of financial assets (currently based on yfinance and pycoingecko), including search and a symbol class.
- pandaSDMX (⭐127) - Python package that implements SDMX 2.1 (ISO 17369:2013), a format for exchange of statistical data and metadata used by national statistical agencies, central banks, and international organisations.
- cif (⭐59) - Python package that include few composite indicators, which summarize multidimensional relationships between individual economic indicators.
- finagg (⭐435) - finagg is a Python package that provides implementations of popular and free financial APIs, tools for aggregating historical data from those APIs into SQL databases, and tools for transforming aggregated data into features useful for analysis and AI/ML.
- FinanceDatabase (⭐3.6k) - This is a database of 300.000+ symbols containing Equities, ETFs, Funds, Indices, Currencies, Cryptocurrencies and Money Markets.
- Trading Strategy (⭐233) - download price data for decentralised exchanges and lending protocols (DeFi)
Excel Integration
- xlwings - Make Excel fly with Python.
- openpyxl - Read/Write Excel 2007 xlsx/xlsm files.
- xlrd (⭐2.2k) - Library for developers to extract data from Microsoft Excel spreadsheet files.
- xlsxwriter - Write files in the Excel 2007+ XLSX file format.
- xlwt (⭐1k) - Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003 XLS files, on any platform.
- DataNitro - DataNitro also offers full-featured Python-Excel integration, including UDFs. Trial downloads are available, but users must purchase a license.
- xlloop - XLLoop is an open source framework for implementing Excel user-defined functions (UDFs) on a centralised server (a function server).
- expy - The ExPy add-in allows easy use of Python directly from within an Microsoft Excel spreadsheet, both to execute arbitrary code and to define new Excel functions.
- pyxll - PyXLL is an Excel add-in that enables you to extend Excel using nothing but Python code.
Visualization
- D-Tale (⭐4.8k) - Visualizer for pandas dataframes and xarray datasets.
- mplfinance (⭐3.7k) - matplotlib utilities for the visualization, and visual analysis, of financial data.
- finplot (⭐937) - Performant and effortless finance plotting for Python.
- finvizfinance (⭐508) - Finviz analysis python library.
- market-analy (⭐64) - Analysis and interactive charting using market-prices (⭐75) and bqplot.
- QuantInvestStrats (⭐185) - Quantitative Investment Strategies (QIS) package implements Python analytics for visualisation of financial data, performance reporting, analysis of quantitative strategies.
R
Numerical Libraries & Data Structures
- xts (⭐219) - eXtensible Time Series: Provide for uniform handling of R's different time-based data classes by extending zoo, maximizing native format information preservation and allowing for user level customization and extension, while simplifying cross-class interoperability.
- data.table (⭐3.6k) - Extension of data.frame: Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns and a fast file reader (fread). Offers a natural and flexible syntax, for faster development.
- sparseEigen (⭐12) - Sparse principal component analysis.
- TSdbi - Provides a common interface to time series databases.
- tseries - Time Series Analysis and Computational Finance.
- zoo - S3 Infrastructure for Regular and Irregular Time Series (Z's Ordered Observations).
- tis - Functions and S3 classes for time indexes and time indexed series, which are compatible with FAME frequencies.
- tfplot - Utilities for simple manipulation and quick plotting of time series data.
- tframe - A kernel of functions for programming time series methods in a way that is relatively independently of the representation of time.
Data Sources
- IBrokers - Provides native R access to Interactive Brokers Trader Workstation API.
- Rblpapi (⭐167) - An R Interface to 'Bloomberg' is provided via the 'Blp API'.
- Quandl - Get Financial Data Directly Into R.
- Rbitcoin (⭐57) - Unified markets API interface (bitstamp, kraken, btce, bitmarket).
- GetTDData (⭐23) - Downloads and aggregates data for Brazilian government issued bonds directly from the website of Tesouro Direto.
- GetHFData (⭐39) - Downloads and aggregates high frequency trading data for Brazilian instruments directly from Bovespa ftp site.
- Reddit WallstreetBets API - Provides daily top 50 stocks from reddit (subreddit) Wallstreetbets and their sentiments via the API.
- td (⭐15) - Interfaces the 'twelvedata' API for stocks and (digital and standard) currencies.
- rbcb (⭐92) - R interface to Brazilian Central Bank web services.
- rb3 (⭐71) - A bunch of downloaders and parsers for data delivered from B3.
- simfinapi (⭐19) - Makes 'SimFin' data (https://simfin.com/) easily accessible in R.
- tidyfinance (⭐13) - Tidy Finance helper functions to download financial data and process the raw data into a structured Format (tidy data), including date conversion, scaling factor values, and filtering by the specified date.
Financial Instruments and Pricing
- RQuantLib (⭐120) - RQuantLib connects GNU R with QuantLib.
- quantmod - Quantitative Financial Modelling Framework.
- Rmetrics - The premier open source software solution for teaching and training quantitative finance.
- fAsianOptions - EBM and Asian Option Valuation.
- fAssets - Analysing and Modelling Financial Assets.
- fBasics - Markets and Basic Statistics.
- fBonds - Bonds and Interest Rate Models.
- fExoticOptions - Exotic Option Valuation.
- fOptions - Pricing and Evaluating Basic Options.
- fPortfolio - Portfolio Selection and Optimization.
- portfolio (⭐15) - Analysing equity portfolios.
- sparseIndexTracking (⭐50) - Portfolio design to track an index.
- covFactorModel (⭐33) - Covariance matrix estimation via factor models.
- riskParityPortfolio (⭐107) - Blazingly fast design of risk parity portfolios.
- sde - Simulation and Inference for Stochastic Differential Equations.
- YieldCurve - Modelling and estimation of the yield curve.
- SmithWilsonYieldCurve - Constructs a yield curve by the Smith-Wilson method from a table of LIBOR and SWAP rates.
- ycinterextra - Yield curve or zero-coupon prices interpolation and extrapolation.
- AmericanCallOpt - This package includes pricing function for selected American call options with underlying assets that generate payouts.
- VarSwapPrice - Pricing a variance swap on an equity index.
- RND - Risk Neutral Density Extraction Package.
- LSMonteCarlo - American options pricing with Least Squares Monte Carlo method.
- OptHedging - Estimation of value and hedging strategy of call and put options.
- tvm - Time Value of Money Functions.
- OptionPricing - Option Pricing with Efficient Simulation Algorithms.
- credule (⭐5) - Credit Default Swap Functions.
- derivmkts - Functions and R Code to Accompany Derivatives Markets.
- FinCal (⭐22) - Package for time value of money calculation, time series analysis and computational finance.
- r-quant (⭐30) - R code for quantitative analysis in finance.
- options.studies (⭐6) - options trading studies functions for use with options.data package and shiny.
- PortfolioAnalytics (⭐79) - Portfolio Analysis, Including Numerical Methods for Optimizationof Portfolios.
- fmbasics (⭐12) - Financial Market Building Blocks.
- R-fixedincome (⭐52) - Fixed income tools for R.
Trading
- backtest - Exploring Portfolio-Based Conjectures About Financial Instruments.
- pa - Performance Attribution for Equity Portfolios.
- TTR (⭐332) - Technical Trading Rules.
- QuantTools - Enhanced Quantitative Trading Modelling.
- blotter (⭐114) - Transaction infrastructure for defining instruments, transactions, portfolios and accounts for trading systems and simulation. Provides portfolio support for multi-asset class and multi-currency portfolios. Actively maintained and developed.
Backtesting
- quantstrat (⭐289) - Transaction-oriented infrastructure for constructing trading systems and simulation. Provides support for multi-asset class and multi-currency portfolios for backtesting and other financial research.
Risk Analysis
- PerformanceAnalytics (⭐211) - Econometric tools for performance and risk analysis.
Factor Analysis
- FactorAnalytics (⭐67) - The FactorAnalytics package contains fitting and analysis methods for the three main types of factor models used in conjunction with portfolio construction, optimization and risk management, namely fundamental factor models, time series factor models and statistical factor models.
- Expected Returns (⭐41) - Solutions for enhancing portfolio diversification and replications of seminal papers with R, most of which are discussed in one of the best investment references of the recent decade, Expected Returns: An Investors Guide to Harvesting Market Rewards by Antti Ilmanen.
Time Series
- tseries - Time Series Analysis and Computational Finance.
- fGarch - Rmetrics - Autoregressive Conditional Heteroskedastic Modelling.
- timeSeries - Rmetrics - Financial Time Series Objects.
- rugarch (⭐24) - Univariate GARCH Models.
- rmgarch (⭐12) - Multivariate GARCH Models.
- tidypredict (⭐2) - Run predictions inside the database https://tidypredict.netlify.com/.
- tidyquant (⭐856) - Bringing financial analysis to the tidyverse.
- timetk (⭐613) - A toolkit for working with time series in R.
- tibbletime (⭐179) - Built on top of the tidyverse, tibbletime is an extension that allows for the creation of time aware tibbles through the setting of a time index.
- matrixprofile (⭐362) - Time series data mining library built on top of the novel Matrix Profile data structure and algorithms.
- garchmodels (⭐34) - A parsnip backend for GARCH models.
Calendars
- timeDate - Chronological and Calendar Objects
- bizdays (⭐53) - Business days calculations and utilities
Matlab
FrameWorks
- QUANTAXIS (⭐8.2k) - Integrated Quantitative Toolbox with Matlab.
- PROJ_Option_Pricing_Matlab (⭐175) - Quant Option Pricing - Exotic/Vanilla: Barrier, Asian, European, American, Parisian, Lookback, Cliquet, Variance Swap, Swing, Forward Starting, Step, Fader
Julia
- Lucky.jl (⭐9) - Modular, asynchronous trading engine in pure Julia.
- QuantLib.jl (⭐138) - Quantlib implementation in pure Julia.
- Ito.jl (⭐37) - A Julia package for quantitative finance.
- TALib.jl (⭐52) - A Julia wrapper for TA-Lib.
- IncTA.jl (⭐20) - Julia Incremental Technical Analysis Indicators
- Miletus.jl (⭐84) - A financial contract definition, modeling language, and valuation framework.
- Temporal.jl (⭐101) - Flexible and efficient time series class & methods.
- Indicators.jl (⭐216) - Financial market technical analysis & indicators on top of Temporal.
- Strategems.jl (⭐162) - Quantitative systematic trading strategy development and backtesting.
- TimeSeries.jl (⭐355) - Time series toolkit for Julia.
- MarketTechnicals.jl (⭐127) - Technical analysis of financial time series on top of TimeSeries.
- MarketData.jl (⭐150) - Time series market data.
- TimeFrames.jl (⭐4) - A Julia library that defines TimeFrame (essentially for resampling TimeSeries).
- DataFrames.jl (⭐1.7k) - In-memory tabular data in Julia
- TSFrames.jl (⭐94) - Handle timeseries data on top of the powerful and mature DataFrames.jl
Java
- Strata - Modern open-source analytics and market risk library designed and written in Java.
- JQuantLib (⭐126) - JQuantLib is a free, open-source, comprehensive framework for quantitative finance, written in 100% Java.
- finmath.net - Java library with algorithms and methodologies related to mathematical finance.
- quantcomponents (⭐163) - Free Java components for Quantitative Finance and Algorithmic Trading.
- DRIP - Fixed Income, Asset Allocation, Transaction Cost Analysis, XVA Metrics Libraries.
- ta4j (⭐2.1k) - A Java library for technical analysis.
JavaScript
- finance.js (⭐1.2k) - A JavaScript library for common financial calculations.
- portfolio-allocation (⭐176) - PortfolioAllocation is a JavaScript library designed to help constructing financial portfolios made of several assets: bonds, commodities, cryptocurrencies, currencies, exchange traded funds (ETFs), mutual funds, stocks...
- Ghostfolio (⭐4.5k) - Wealth management software to keep track of financial assets like stocks, ETFs or cryptocurrencies and make solid, data-driven investment decisions.
- IndicatorTS (⭐297) - Indicator is a TypeScript module providing various stock technical analysis indicators, strategies, and a backtest framework for trading.
- ccxt (⭐33k) - A JavaScript / Python / PHP cryptocurrency trading API with support for more than 100 bitcoin/altcoin exchanges.
- PENDAX (⭐44) - Javascript SDK for Trading/Data API and Websockets for FTX, FTXUS, OKX, Bybit, & More.
Data Visualization
- QUANTAXIS_Webkit (⭐38) - An awesome visualization center based on quantaxis.
Haskell
- quantfin (⭐138) - quant finance in pure haskell.
- Haxcel (⭐33) - Excel Addin for Haskell.
- Ffinar (⭐4) - A financial maths library in Haskell.
Scala
- QuantScale (⭐46) - Scala Quantitative Finance Library.
- Scala Quant (⭐10) - Scala library for working with stock data from IFTTT recipes or Google Finance.
Ruby
- Jiji (⭐241) - Open Source Forex algorithmic trading framework using OANDA REST API.
Elixir/Erlang
- Tai (⭐466) - Open Source composable, real time, market data and trade execution toolkit.
- Workbench (⭐115) - From Idea to Execution - Manage your trading operation across a globally distributed cluster
- Prop (⭐48) - An open and opinionated trading platform using productive & familiar open source libraries and tools for strategy research, execution and operation.
Golang
- Kelp (⭐1.1k) - Kelp is an open-source Golang algorithmic cryptocurrency trading bot that runs on centralized exchanges and Stellar DEX (command-line usage and desktop GUI).
- marketstore (⭐1.9k) - DataFrame Server for Financial Timeseries Data.
- IndicatorGo (⭐522) - IndicatorGo is a Golang module providing various stock technical analysis indicators, strategies, and a backtest framework for trading.
CPP
- QuantLib (⭐5.4k) - The QuantLib project is aimed at providing a comprehensive software framework for quantitative finance.
- QuantLibRisks (⭐15) - Fast risks with QuantLib in C++
- XAD (⭐259) - Automatic Differentation (AAD) Library
- TradeFrame (⭐495) - C++ 17 based framework/library (with sample applications) for testing options based automated trading ideas using DTN IQ real time data feed and Interactive Brokers (TWS API) for trade execution. Comes with built-in Option Greeks/IV (⭐495) calculation library.
- Hikyuu (⭐2.2k) - A base on Python/C++ open source high-performance quant framework for faster analysis and backtesting, contains the complete trading system components for reuse and combination. You can use python or c++ freely.
Frameworks
QuantLib (⭐5.4k) - The QuantLib project is aimed at providing a comprehensive software framework for quantitative finance.
- QuantLibRisks - Fast risks with QuantLib in Python and C++ (⭐15)
- XAD - Automatic Differentiation (AAD) Library in Python and C++ (⭐259)
- JQuantLib (⭐126) - Java port.
- RQuantLib (⭐120) - R port.
- QuantLibAddin - Excel support.
- QuantLibXL - Excel support.
- QLNet (⭐387) - .Net port.
- PyQL (⭐1k) - Python port.
- QuantLib.jl (⭐138) - Julia port.
- QuantLib-Python Documentation - Documentation for the Python bindings for the QuantLib library
TA-Lib - perform technical analysis of financial market data.
Portfolio Optimizer - Portfolio Optimizer is a Web API for portfolio analysis and optimization.
XAD: Automatic Differentation (AAD) Library for Python and C++ (⭐259)
CSharp
- QuantConnect (⭐9.9k) - Lean Engine is an open-source fully managed C# algorithmic trading engine built for desktop and cloud usage.
- StockSharp (⭐7.3k) - Algorithmic trading and quantitative trading open source platform to develop trading robots (stock markets, forex, crypto, bitcoins, and options).
- TDAmeritrade.DotNetCore (⭐53) - Free, open-source .NET Client for the TD Ameritrade Trading Platform. Helps developers integrate TD Ameritrade API into custom trading solutions.
Rust
- QuantMath (⭐371) - Financial maths library for risk-neutral pricing and risk
- Barter (⭐997) - Open-source Rust framework for building event-driven live-trading & backtesting systems
- LFEST (⭐60) - Simulated perpetual futures exchange to trade your strategy against.
- TradeAggregation (⭐76) - Aggregate trades into user-defined candles using information driven rules.
- SlidingFeatures (⭐42) - Chainable tree-like sliding windows for signal processing and technical analysis.
- RustQuant (⭐1.1k) - Quantitative finance library written in Rust.
- finalytics (⭐22) - A rust library for financial data analysis.
Reproducing Works, Training & Books
- Auto-Differentiation Website - Background and resources on Automatic Differentiation (AD) / Adjoint Algorithmic Differentitation (AAD).
- Derman Papers (⭐409) - Notebooks that replicate original quantitative finance papers from Emanuel Derman.
- ML-Quant - Top Quant resources like ArXiv (sanity), SSRN, RePec, Journals, Podcasts, Videos, and Blogs.
- volatility-trading (⭐1.6k) - A complete set of volatility estimators based on Euan Sinclair's Volatility Trading.
- quant (⭐326) - Quantitative Finance and Algorithmic Trading exhaust; mostly ipython notebooks based on Quantopian, Zipline, or Pandas.
- fecon235 (⭐1.1k) - Open source project for software tools in financial economics. Many jupyter notebook to verify theoretical ideas and practical methods interactively.
- Quantitative-Notebooks (⭐1k) - Educational notebooks on quantitative finance, algorithmic trading, financial modelling and investment strategy
- QuantEcon - Lecture series on economics, finance, econometrics and data science; QuantEcon.py, QuantEcon.jl, notebooks
- FinanceHub (⭐679) - Resources for Quantitative Finance
- Python_Option_Pricing (⭐650) - An library to price financial options written in Python. Includes: Black Scholes, Black 76, Implied Volatility, American, European, Asian, Spread Options.
- python-training (⭐6.3k) - J.P. Morgan's Python training for business analysts and traders.
- Stock_Analysis_For_Quant (⭐1.7k) - Different Types of Stock Analysis in Excel, Matlab, Power BI, Python, R, and Tableau.
- algorithmic-trading-with-python (⭐2.8k) - Source code for Algorithmic Trading with Python (2020) by Chris Conlan.
- MEDIUM_NoteBook (⭐2.1k) - Repository containing notebooks of cerlymarco's posts on Medium.
- QuantFinance (⭐396) - Training materials in quantitative finance.
- IPythonScripts (⭐150) - Tutorials about Quantitative Finance in Python and QuantLib: Pricing, xVAs, Hedging, Portfolio Optimisation, Machine Learning and Deep Learning.
- Computational-Finance-Course (⭐382) - Materials for the course of Computational Finance.
- Machine-Learning-for-Asset-Managers (⭐490) - Implementation of code snippets, exercises and application to live data from Machine Learning for Asset Managers (Elements in Quantitative Finance) written by Prof. Marcos López de Prado.
- Python-for-Finance-Cookbook (⭐733) - Python for Finance Cookbook, published by Packt.
- modelos_vol_derivativos (⭐56) - "Modelos de Volatilidade para Derivativos" book's Jupyter notebooks
- NMOF (⭐35) - Functions, examples and data from the first and the second edition of "Numerical Methods and Optimization in Finance" by M. Gilli, D. Maringer and E. Schumann (2019, ISBN:978-0128150658).
- py4fi2nd (⭐1.4k) - Jupyter Notebooks and code for Python for Finance (2nd ed., O'Reilly) by Yves Hilpisch.
- aiif (⭐311) - Jupyter Notebooks and code for the book Artificial Intelligence in Finance (O'Reilly) by Yves Hilpisch.
- py4at (⭐695) - Jupyter Notebooks and code for the book Python for Algorithmic Trading (O'Reilly) by Yves Hilpisch.
- dawp (⭐595) - Jupyter Notebooks and code for Derivatives Analytics with Python (Wiley Finance) by Yves Hilpisch.
- dx (⭐715) - DX Analytics | Financial and Derivatives Analytics with Python.
- QuantFinanceBook (⭐498) - Quantitative Finance book.
- rough_bergomi (⭐115) - A Python implementation of the rough Bergomi model.
- frh-fx (⭐11) - A python implementation of the fast-reversion Heston model of Mechkov for FX purposes.
- Value Investing Studies (⭐82) - A collection of data analysis studies that examine the performance and characteristics of value investing over long periods of time.
- Machine Learning Asset Management (⭐1.7k) - Machine Learning in Asset Management (by @firmai).
- Deep Learning Machine Learning Stock (⭐1.3k) - Deep Learning and Machine Learning stocks represent a promising long-term or short-term opportunity for investors and traders.
- Technical Analysis and Feature Engineering (⭐123) - Feature Engineering and Feature Importance of Machine Learning in Financial Market.
- Differential Machine Learning and Axes that matter by Brian Huge and Antoine Savine (⭐138) - Implement, demonstrate, reproduce and extend the results of the Risk articles 'Differential Machine Learning' (2020) and 'PCA with a Difference' (2021) by Huge and Savine, and cover implementation details left out from the papers.
- systematictradingexamples (⭐372) - Examples of code related to book Systematic Trading and blog
- pysystemtrade_examples (⭐196) - Examples using pysystemtrade for Robert Carver's blog.
- ML_Finance_Codes (⭐1.9k) - Machine Learning in Finance: From Theory to Practice Book
- Hands-On Machine Learning for Algorithmic Trading (⭐1.5k) - Hands-On Machine Learning for Algorithmic Trading, published by Packt
- financialnoob-misc (⭐26) - Codes from @financialnoob's posts
- MesoSim Options Trading Strategy Library (⭐9) - Free and public Options Trading strategy library for MesoSim.
- Quant-Finance-With-Python-Code (⭐89) - Repo for code examples in Quantitative Finance with Python by Chris Kelliher
- QuantFinanceTraining (⭐22) - This repository contains codes that were executed during my training in the CQF (Certificate in Quantitative Finance). The codes are organized by class, facilitating navigation and reference.
- Statistical-Learning-based-Portfolio-Optimization (⭐13) - This R Shiny App utilizes the Hierarchical Equal Risk Contribution (HERC) approach, a modern portfolio optimization method developed by Raffinot (2018).
- book_irds3 (⭐59) - Code repository for Pricing and Trading Interest Rate Derivatives.
- Autoencoder-Asset-Pricing-Models (⭐68) - Reimplementation of Autoencoder Asset Pricing Models (GKX, 2019).
- Finance (⭐2.2k) - 150+ quantitative finance Python programs to help you gather, manipulate, and analyze stock market data.
- 101_formulaic_alphas (⭐16) - Implementation of 101 formulaic alphas using qstrader.
- Tidy Finance - An opinionated approach to empirical research in financial economics - a fully transparent, open-source code base in multiple programming languages (Python and R) to enable the reproducible implementation of financial research projects for students and practitioners.
- RoughVolatilityWorkshop (⭐14) - 2024 QuantMind's Rough Volatility Workshop lectures.