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 a detailed walkthrough on this module.


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.


Portfolio Objectives

Classification Name
Utility Theory Quadratic Utility
Constant Relative Risk Aversion (CRRA)
Constant Absolute Risk Aversion (CARA)
Hyperbolic Absolute Risk Aversion (HARA)
Kelly Criterion & Fractional Kelly
Markowitz Paradigm Maximum Mean Return
Minimum Variance
Mean-Variance
Maximum Sharpe Ratio
Principled Heuristics Uniform (1/N)
Risk Parity
Inverse Volatility
Softmax Mean
Maximum Diversification
Return Entropy Portfolio Optimization
Risk Measures Value at Risk (VaR)
Conditional Value at Risk (CVaR)
Mean-CVaR
Entropic Value at Risk (EVaR)
Mean-EVaR
Entropic Risk Measure
Worst-Case Loss
Online Learning Best Constant Rebalanced Portfolio (BCRP)
Exponential Gradient
Distributionally Robust Optimization KL-Ambiguity Robust Maximum Mean Return
KL-Ambiguity Robust Kelly
KL-Ambiguity Robust Fractional Kelly
Wasserstein-Ambiguity Robust Maximum Mean Return

Metrics

Portfolio Metrics Backtest Metrics
Tickers Sharpe
Weights Sortino
Portfolio Entropy Volatility
Herfindahl Index Average Return
Gini Coefficient Total Return
Absolute Maximum Weight Maximum Drawdown
Value-at-Risk 95
Conditional-Value-at-Risk 95
Skew
Kurtosis
Omega Ratio

Other Features

Slippage Models Regularization Schemes
Constant L1 Regularization
Gamma L2 Regularization
Lognormal L-infinity Regularization
Inverse Gaussian Entropy
Compound Poisson-Lognormal Weight Variance
Mean Pairwise Absolute Deviation
KL-Divergence from Uniform (Experimental)
JS-Divergence from Uniform (Experimental)

Upcoming Features (Unconfirmed)

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

  • Hierarchical Risk Parity (Principled Heuristics)

  • Universal Portfolios (Online Learning)

  • Online Newton Step (Online Learning)

  • ADA-BARRONS (Online Learning)

  • Wasserstein Ambiguity Duals (Distributionally Robust)

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

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.6.0.tar.gz (16.7 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.6.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for opes-0.6.0.tar.gz
Algorithm Hash digest
SHA256 8ecc16895eaacd447e21a0e7546f88213916471cb96f99e82ed414075591be13
MD5 a3eea1dd152724b1e22bcaa142fdeca6
BLAKE2b-256 22d47ff6efafc5fb0184a8ac9b6f9fd4d32e38fbcced922d5d725f7bc3fd13f4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opes-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a63349691b066466ac443d562441bd7228b9019351c89c3b23a6e00fc6c27ce
MD5 0668daf3d78769e0b17b0e183d951e68
BLAKE2b-256 2a89db790b4c2000a1448336d5ea804e1d1b2387ef7cc4af77bd5a3becc6b6ea

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