Home / Risk & portfolio

Riskfolio-Lib

Risk & portfolio★ 4,539 GitHub starsC++⏱ Last commit 7 days ago

CVXPY-based portfolio optimization and strategic asset allocation

What it is

A Python library for portfolio optimization and quantitative strategic asset allocation, built on top of CVXPY and closely integrated with Pandas. It supports mean risk and logarithmic mean risk (Kelly criterion) optimization with multiple objective functions, risk parity optimization, and a broad set of convex risk measures spanning dispersion, downside, and drawdown measures such as CVaR, EVaR, and CDaR. The library is aimed at students, academics, and practitioners who want to build portfolios based on mathematically complex models with low effort. Users should be comfortable with convex optimization concepts, as the library is a modeling tool rather than a ready-made investment product.

At a glance

RecommendedOur rating, based on popularity, maintenance and how ready it is for real use.

Best forProfessional quants
Used forStrategy research, Data analysis
MarketsMulti-market
StackPython
Learning curveModerate learning curve
Practical valueHigh practical value
CostFree and open source
HardwareNo GPU needed
MaintenanceLast commit 7 days ago

GitHub stars, last 30 days

Daily snapshots since 2026-09-12 (up to 30 days): +47 over the period, now 4,539. Gaps mean no snapshot was taken that day.

In the author's words

Portfolio Optimization and Quantitative Strategic Asset Allocation in Python.

Open on GitHub ↗This week's trending tools中文页面

Similar tools