PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Portfolio Optimization Python Packages

Python packages with the GitHub topic portfolio-optimization. Sorted by monthly downloads, with stars and forks.
polakowo
vectorbt

The backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.

347K 9K 1K
skfolio
skfolio

Python library for portfolio optimization built on top of scikit-learn

147K 2K 270
pyportfolio
pyportfolioopt

Financial portfolio optimization in python, including classical efficient frontier, Black-Litterman, Hierarchical Risk Parity

135K 6K 1K
dcajasn
riskfolio-lib

Portfolio Optimization in Python

84K 5K 718
cvxgrp
cvxportfolio

Portfolio optimization and back-testing.

16K 1K 305
CPZ-Lab
cpz-ai

Open-source quantitative portfolio optimization, risk analytics, and anti-overfitting strategy certification in Python. The research core of the CPZAI systematic trading operating system.

15K 3 0
tschm
pyhrp

Cluster-based portfolio allocation on an explicit, inspectable tree: hierarchical risk parity, Schur complementary allocation and hierarchical 1/N

8K 55 23
ArturSepp
optimalportfolios

Production multi-asset portfolio construction and rolling backtesting in Python

7K 98 43
polakowo
vectorbt-rust

The backtesting engine that gives you an unfair advantage. Run thousands of trading ideas before others finish one.

5K 9K 1K
dppalomar
riskparityportfolio

Fast and scalable construction of risk parity portfolios

4K 325 75
ml4t
ml4t-models

Finance-specific models for asset pricing, prediction, and portfolio learning.

4K 16 13
fortitudo-tech
fortitudo-tech

Entropy Pooling views and stress testing combined with Conditional Value-at-Risk (CVaR) portfolio optimization in Python.

4K 312 54
mbk-dev
okama

Investment portfolio and stocks analyzing tools for Python with free historical data

2K 274 43
CPZ-Lab
cpz-quant

Open-source quantitative portfolio optimization, risk analytics, and anti-overfitting strategy certification in Python. The research core of the CPZAI systematic trading operating system.

2K 3 0
ssantoshp
empyrial

An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎

2K 1K 134
tfm000
copulax

JAX-based copula modelling

2K 8 1
cloudQuant
fincore

Quantitative performance & risk analytics: 150+ financial metrics, portfolio optimization, Monte Carlo simulation, and attribution — the actively maintained successor to empyrical, pyfolio, and alphalens.

2K 5 2
JordiCorbilla
riskoptima

The RiskOptima toolkit is a comprehensive Python solution designed to assist investors in evaluating, managing, and optimizing the risk of their investment portfolios. This package implements advanced financial metrics and models to compute key risk indicators, including Value at Risk (VaR), Conditional Value at Risk (CVaR), and volatility assessme

1K 7 0
chinchalinchin
scrilla

A python application that wraps around various financial APIs, calculates statistics and optimizes portfolio allocations.

1K 9 1
Alpha-Stochastic-Research
asrquant

ASRQuant is an open-source Python framework for auditable quantitative finance research, combining backtesting, Monte Carlo simulation, derivatives pricing, risk analytics, portfolio modelling, econometrics, machine learning, visualization, reproducibility, and implementation-sensitivity analysis.

1K 2 2
prasants
quantlite

A fat-tail-native quantitative finance toolkit for Python.

1K 3 0
ArturSepp
goal-based-allocation

Semi-analytical dynamic mean-variance allocation and terminal-wealth risk under regime-switching jump-diffusions

972 13 3
makedirectory
tradeflow-engine

Layered, broker-agnostic algorithmic trading engine (Alpaca adapter included): scanner → strategy → backtest/live, with parameter optimization and OR-Tools portfolio allocation. Educational.

814 8 3
Jebel-Quant
basanos

Implementing a first hurdle for expected returns

776 19 2
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology