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 | |
| Wasserstein-Ambiguity Robust Minimum Variance | |
| Wasserstein-Ambiguity Robust Mean-Variance |
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opes-0.7.0.tar.gz.
File metadata
- Download URL: opes-0.7.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
783ba54fdb7e2191996a89bfea3c9433c5396dcff8801d9438009d2acac50a6d
|
|
| MD5 |
3959c83a6f5fbd42b302c219ca1ecfcf
|
|
| BLAKE2b-256 |
da378c83b0ee58920c8c88c0b17e12a5724fce2b6b8b005098a247ae1837b20a
|
File details
Details for the file opes-0.7.0-py3-none-any.whl.
File metadata
- Download URL: opes-0.7.0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee9eeeca9d9e896e930d02d614b386ccfeb7c00b720172aefffaae207177343a
|
|
| MD5 |
208842589b3390cedc14e182ca0f5600
|
|
| BLAKE2b-256 |
05fbdfba266444d853c9b27c93639bcbf68d9620ca0197d6c79afa15b31d1602
|