Skip to main content

A Research-focused portfolio optimization and backtesting engine.

Project description

OPES

An Open-source Portfolio Estimation System for advanced portfolio optimization and backtesting.


Overview

OPES is a comprehensive Python library for advanced portfolio optimization and backtesting. Designed for quantitative finance enthusiasts, OPES provides a wide range of portfolio strategies, risk measures and robust evaluation tools.

Visit the documentation for quick insights.

For a detailed guide on this module, visit the guide.


Disclaimer

The information provided by OPES is for educational, research and informational purposes only. It is not intended as financial, investment or legal advice. Users should conduct their own due diligence and consult with licensed financial professionals before making any investment decisions. OPES and its contributors are not liable for any financial losses or decisions made based on this content. Past performance is not indicative of future results.


Porfolio Objectives

Utility Theory

  • Quadratic Utility
  • Constant Relative Risk Aversion
  • Constant Absolute Risk Aversion
  • Hyperbolic Absolute Risk Aversion
  • Kelly Criterion and Fractions

Markowitz Paradigm

  • Maximum Mean
  • Minimum Variance
  • Mean Variance
  • Maximum Sharpe

Principled Heuristics

  • Uniform (1/N)
  • Risk Parity
  • Inverse Volatility
  • Softmax Mean
  • Maximum Diversification
  • Return Entropy Portfolio Optimization

Risk Measures

  • Conditional Value at Risk
  • Mean-CVaR
  • Entropic Value at Risk
  • Mean-EVaR
  • Entropic Risk Measure

Online Learning

  • BCRP with weight regularization (FTL/FTRL support)
  • Exponential Gradient

Distributionally Robust Optimization

  • KL-Ambiguity Distributionally Robust Maximum Mean
  • KL-Ambiguity Distributionally Robust Kelly and Fractions
  • Wasserstein-Ambiguity Distributionally Robust Maximum Mean

Slippage Models

  • Constant
  • Gamma
  • Lognormal
  • Inverse Gaussian
  • Compound Poisson-Lognormal

Regularization Schemes

  • L1
  • L2
  • L-infinity
  • Entropy
  • Weight Variance
  • Mean Pairwise Absolute Deviation

Backtest Metrics

  • Sharpe Ratio
  • Sortino Ratio
  • Volatility
  • Average Return
  • Total Return
  • Maximum Drawdown
  • Value at Risk 95
  • Conditional Value at Risk 95
  • Skew
  • Kurtosis
  • Omega Ratio

Portfolio Metrics

  • Tickers
  • Weights
  • Portfolio Entropy
  • Herfindahl Index
  • Gini Coefficient
  • Absolute Maximum Weight

Upcoming Features (Unconfirmed)

These features are still in the works and may or may not appear in later updates:

  • Mean–Variance–Skew–Kurtosis Optimization (Markowitz)

  • Hierarchical Risk Parity (Principled Heuristics)

  • Online Newton Step (Online Learning)

  • Ada Barrons (Online Learning)

  • Wasserstein Ambiguity Duals (Distributionally Robust)

    • Global Minimum Variance (GMV)
    • Mean–Variance Optimization (MVO)
    • Kelly Criterion

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opes-0.5.2.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opes-0.5.2-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file opes-0.5.2.tar.gz.

File metadata

  • Download URL: opes-0.5.2.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for opes-0.5.2.tar.gz
Algorithm Hash digest
SHA256 49e90e6799c4ed544f353bcb0a940c70ca09d886b89b3500d533218b0db27898
MD5 78e272f0da990757db8c415c198a3484
BLAKE2b-256 e3d2356f1e3c3984e181c6324bb028b2a263eee9c7281b2dfa91987b9f361872

See more details on using hashes here.

File details

Details for the file opes-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: opes-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for opes-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f15f7bb9d0401dbf23000cabe7723e008bf5cf06a1a381758cceb34f2eb2ed5
MD5 d9b686f7945fcc32409c3a16a8e6cd6e
BLAKE2b-256 e39f10ed711430f9fbf651eb1e1e5c3a0be1d5a813ce1ffb0d8c7629c02d2fd6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page