Markets and trading · Independent · 22 Oct 2026

ArturSepp/OptimalPortfolios

Production multi-asset portfolio construction and rolling backtesting in Python

← Markets and trading
OptimalPortfolios: portfolio builder. Multi-asset portfolio construction and rolling backtests in Python.

In simple English

Building a mixed investment portfolio requires balancing asset weights, risks and costs over time. This tool calculates optimal asset weights and runs historical backtests for financial panels. It helps quantitative researchers test allocation strategies without writing complex optimization loops from scratch. The software is free to use under an MIT licence. It requires Python programming knowledge and historical market data to run.

What it is

A Python library for multi-asset portfolio construction and rolling backtesting. It takes covariance matrices and alpha signals to produce constrained target weights and solver outcomes.

What it is good for

Quantitative researchers and portfolio managers who need to build, constrain and backtest multi-asset allocation models with historical price data.

Stars99
LicenceMIT
Latestv8.0.0 (2026-10-22)checked 22 Oct 2026
Last code change2026-10-22
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Handles incomplete histories and mixed rebalancing frequencies across assets.
  • Includes drift-aware turnover accounting and transaction cost penalties.
  • Backed by published academic research papers in quantitative finance.
Watch for
  • Requires strong proficiency in Python and quantitative finance concepts.
  • Relies on external upstream tools for factor model construction.
  • Supports quadratic and conic objectives rather than non-quadratic risk measures like CVaR.
Replaces

Writing custom portfolio optimization and rolling backtest loops from scratch

Works well with

qis

Also reviewed on Repo Radar
  • jesse-ai/jesse8.7k stars

    A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.

  • hummingbot/hummingbot20k stars

    A free framework for writing and running automated trading programs on cryptocurrency exchanges.

  • lballabio/QuantLib7.7k stars

    The long-established free library for pricing and risk-managing financial instruments.

Install
pip install optimalportfolios

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Trading & Investing › Portfolio & Records › Portfolio Optimization.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.