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

  • 15+ portfolio schemes: Mean-Variance, Kelly Criterion, CVaR, Exponential Gradient and more
  • Advanced backtesting: Historical performance analysis with comprehensive metrics
  • Stochastic slippage models: Gamma, Lognormal, Inverse Gaussian, Poisson Jump or constant costs
  • Flexible regularization: Entropy, L2, and MaxWeight regularizers
  • Rich metrics: Sharpe, Sortino, Calmar, Max Drawdown, Skewness, Kurtosis and more

Portfolio Methods

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

  • Risk Parity
  • Inverse Volatility
  • Softmax Mean
  • Maximum Diversification
  • 1/N

Risk Measures

  • CVaR
  • Mean-CVaR
  • EVaR
  • Mean-EvaR

Online Learning

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

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.1.1.tar.gz (14.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.1.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opes-0.1.1.tar.gz
  • Upload date:
  • Size: 14.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.1.1.tar.gz
Algorithm Hash digest
SHA256 408e0fcd0772763d6734f44061d92af6b56c152ede0d7a6f0ca613a2173731a4
MD5 b948c849c4941d61179e37b348d91080
BLAKE2b-256 bfc3d9bcf1746568ef92bc4a5851a29848073047a3824ed9cefd35241ee42c85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opes-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7ef4a2aa0ef0676daec336069a6c50c740a55295749acec97294cb88dc9f7e3
MD5 7a0483c859e9f6e07f24cfa3c76cf917
BLAKE2b-256 1ac875dcbbfac5ba5cc2a646aec7c1a2dc83522f34962d1fc4eea10b0b064266

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