30 open-source projects similar to quantopian/pyfolio, ranked by how many features they have in common. Compare stars, activity and what each one does to find the best Pyfolio alternative.
Alphalens is a quantitative alpha factor analysis library designed to measure the predictive power of financial factors. It serves as a computational toolset for processing financial time series and calculating performance metrics to evaluate quantitative trading hypotheses. The library distinguishes itself through the use of quantile-based data binning to analyze return distributions across different factor strength levels. It aligns historical alpha signals with forward-looking price changes to isolate predictive effects and transforms these metrics into heatmaps and time-series charts for
QuantStats is an open-source Python library that calculates risk and return metrics from a portfolio return series and generates comprehensive HTML tear sheets. It computes dozens of financial statistics—including Sharpe ratio, drawdown, and volatility—in a single pass over the input data, using vectorized pandas operations for efficiency. The library distinguishes itself by combining portfolio performance analysis with Monte Carlo simulation, which models thousands of random return paths to estimate the probability of reaching financial targets or hitting loss thresholds. It produces self-co
Riskfolio-Lib is a Python portfolio optimization library and convex risk management tool. It provides a framework for calculating optimal asset allocations using convex risk measures and mathematical programming solvers, supporting linear, quadratic, and semidefinite programming. The library features a hierarchical risk parity framework and financial asset clustering tools to group similar instruments and improve diversification. It includes a portfolio backtesting engine for simulating investment strategies using historical data and cross-validation. The system covers a broad range of quant
PyPortfolioOpt is a comprehensive portfolio optimization library for Python that provides a full suite of methods for constructing and analyzing investment portfolios. At its core, the library implements mean-variance optimization, the Black-Litterman Bayesian model, and Hierarchical Risk Parity, giving users multiple approaches to asset allocation. It includes a complete covariance estimation toolkit with interchangeable estimators such as sample, exponential, shrinkage, and minimum-covariance-determinant methods, along with expected return estimation using historical mean, exponential weight
The FinanceToolkit is an open-source Python library for quantitative finance that provides a unified framework for financial analysis, asset valuation, and risk management. It serves as a comprehensive platform for computing over 200 financial metrics and ratios, with capabilities spanning financial ratio analysis, fixed income analytics, macroeconomic data aggregation, options pricing, and portfolio risk management. The toolkit distinguishes itself through a modular architecture that separates data retrieval from computation, with stateless engines for financial models like Black-Scholes, GA
FundamentalAnalysis is a comprehensive financial analysis library, quantitative finance framework, and macroeconomic data integrator. It provides tools for computing financial ratios, executing corporate health metrics, and pricing derivatives and bonds using mathematical models. The project integrates diverse data streams, including global economic indicators, real-time market quotes, and standardized corporate financial statements. It features a technical analysis engine for generating momentum and volatility indicators, as well as a portfolio performance analyzer for tracking risk-adjusted
An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎
Common financial risk and performance metrics. Used by zipline and pyfolio.
This project is a Python wrapper for the TA-Lib C library, serving as a financial technical analysis library and quantitative trading tool. It provides a collection of mathematical functions designed to analyze market price movements, identify trading signals, and recognize candlestick patterns within financial data. The library focuses on the computation of trend, momentum, and volume metrics. It includes specialized tools for candlestick pattern recognition to detect recurring price action shapes in both historical and real-time data. The system integrates with NumPy arrays to process cont
This is a pandas-based technical analysis library and financial feature engineering tool. It serves as a vectorized indicator calculator that transforms raw price and volume data into derived metrics for time series analysis. The library uses a NumPy-based engine to perform mathematical operations across entire arrays, avoiding iterative loops to maintain high performance. It organizes technical indicators into a modular class hierarchy with a consistent interface, allowing for bulk feature generation and the direct appending of results as new columns to a pandas DataFrame. The system covers
Ghostfolio is a self-hosted portfolio tracker designed for personal finance tracking and wealth management. It allows users to record investment transactions and monitor asset holdings across multiple financial accounts in a single private environment. The system provides a financial performance analyzer to calculate investment returns and generate growth charts. It includes an investment risk auditor that performs static analysis on asset holdings to identify financial vulnerabilities and diversification gaps. The platform covers broader capabilities for multi-account management and financi
Backtrader is a Python backtesting framework and algorithmic trading platform. It provides a toolkit for developing automated trading rules and simulating investment strategies using historical financial time-series data. The system functions as a quantitative analysis tool, combining a simulation engine for testing trading rules with a financial data visualizer that generates price action charts. It allows for the calculation of technical indicators and the evaluation of portfolio performance through risk-adjusted returns. The platform covers live trading integration via brokerage APIs and
mplfinance is a financial time-series plotter and market data visualization framework built on Matplotlib. It is designed to render market data frames into specialized charts, including candlesticks, OHLC bars, Renko bricks, and point-and-figure columns. The library distinguishes itself through a dedicated market data framework that manages trading calendars and non-trading periods, ensuring accurate temporal spacing by collapsing gaps during holidays. It also provides a system for technical analysis charting, enabling the overlay of moving averages, volume bars, and other technical indicator
Zipline is a Python-based algorithmic trading library designed for the development and backtesting of investment strategies. It functions as a quantitative finance engine that processes historical market data to simulate trading interactions and evaluate strategy performance through custom metrics. The platform provides a modular, event-driven framework that manages portfolio state transitions based on time-series data streams. Beyond its core trading capabilities, the system includes a comprehensive financial data analysis toolkit for manipulating large-scale market datasets to support syste
.. -- mode: rst --
This is a quantitative finance library built on TensorFlow for financial engineering, asset pricing, and risk management. It serves as a financial derivative pricing engine, a model calibration tool, and a hardware-accelerated math library for numerical tasks. The library provides specialized capabilities for pricing financial assets using standard models and American option logic, as well as calibrating pricing models to market data through local volatility. It includes tools for constructing yield curves via bootstrapping algorithms and monotone convex interpolation. The framework covers a
GPU-accelerated Factors analysis library and Backtester
Fast and scalable construction of risk parity portfolios
Common financial technical indicators implemented in Pandas.
A Python Finance Library that focuses on the pricing and risk-management of Financial Derivatives, including fixed-income, equity, FX and credit derivatives.
Eiten is an AI-powered market analysis platform and quantitative toolset designed to translate statistical market data and options flow into investment strategies. It provides a suite of specialized financial tools, including an analysis platform driven by large language models, a quantitative portfolio optimizer, and a trading strategy backtester. The project distinguishes itself through the use of random matrix theory to filter covariance noise and mathematical algorithms for portfolio optimization. It integrates these capabilities with a financial data bot for delivery of real-time researc
quant-wiki is a comprehensive knowledge base and structured reference for quantitative finance, financial engineering, and algorithmic trading. It serves as a centralized library of documentation covering mathematical models, financial instruments, and systematic trading strategies. The project integrates AI-driven capabilities through a modular retrieval-augmented generation framework that extracts structured data from research papers and news. It features a multi-agent workflow engine designed to discover and validate predictive alpha factors, alongside tools for local large language model
LLM-Trading-Lab is a trading framework designed to execute equity trades and manage portfolios using large language models while adhering to strict investment constraints. The system distinguishes itself by integrating an algorithmic trading auditor that logs the reasoning behind model-driven decisions for retrospective analysis. It also includes a quantitative research reporter that transforms experimental results into portable reports and weekly summaries for long-term archiving. The framework covers several core functional areas, including automated risk management to enforce stop-loss ac
This project is a pandas data analysis cookbook and Python data science guide. It provides a collection of programmatic recipes and examples for cleaning, manipulating, and analyzing structured data. The project focuses on providing a containerized analysis environment to ensure a consistent workspace and reproducible dependencies when executing data processing scripts. It covers a broad range of data science capabilities, including data ingestion from external sources, raw data cleaning, and exploratory data analysis. These recipes demonstrate how to perform structured data analysis through