Skip to main content

Open-source Python module for portfolio management with a plethora of portfolio schemes, stochastic backtesting and comprehensive metrics

Project description

OPES

An open-source Python library for advanced portfolio optimization and backtesting.

Overview

OPES provides a plethora of quantitative portfolio optimizers with a comprehensive backtesting engine. Test strategies against historical data with configurable slippage costs.

Key Features

Multiple 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

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

Risk Measures

  • CVaR
  • Mean-CVaR
  • EVaR
  • Mean-EvaR
  • Entropic Risk Metric

Online Learning

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

Stochastic Slippage Cost Models for Backtesting

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

Flexible Regularization Schemes

  • L2
  • Entropy
  • Maximum Weight

Comprehensive Metrics

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

Installation

pip install opes

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.

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.2.0.tar.gz (16.3 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.2.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for opes-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2a6a477e156cba433192c024078ed668e3c7cb64ed037a747a1474a72543f8ae
MD5 5ed8244fbe66f07f82ba8b19480f4f36
BLAKE2b-256 8a96c7fd656ffa8c889108d30a28e1ea3e83c03b1e2ea11e6c6d3fc1654ee723

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opes-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.8 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86cd97e54bd89d6fc481d12da45e84b43ec52479460823a419956a948e65e210
MD5 f09043be02c9ab84b0b20aa2f335076f
BLAKE2b-256 a90a21add5473e36cb2a1b3739395a08f0b29a943e6632a73cfdfafc371cc8f1

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