Skip to main content

Riskfolio-Lib

Quantitative Strategic Asset Allocation, easy for you.

Description

Riskfolio-Lib is a library for making quantitative strategic asset allocation or portfolio optimization in Python. It is built on top of cvxpy and closely integrated with pandas data structures.

Some of key functionality that Riskfolio-Lib offers:

  • Portfolio optimization with 4 objective functions (Minimum Risk, Maximum Return, Maximum Risk Adjusted Return Ratio and Maximum Utility Function)
  • Portfolio optimization with 10 convex risk measures (Std. Dev., MAD, CVaR, Maximum Drawdown, among others)
  • Risk Parity Portfolio optimization with 7 convex risk measures (Std. Dev., MAD, CVaR, Maximum Drawdown, among others)
  • Portfolio optimization with Black Litterman model.
  • Portfolio optimization with Risk Factors model.
  • Portfolio optimization with constraints on tracking error and turnover.
  • Portfolio optimization with short positions and leveraged portfolios.
  • Tools for build efficient frontier for 10 risk measures.
  • Tools for build linear constraints on assets, asset classes and risk factors.
  • Tools for build views on assets and asset classes.
  • Tools for calculate risk measures.
  • Tools for calculate risk contributions per asset.
  • Tools for estimate loadings matrix (Stepwise Regression and Principal Components Regression).
  • Tools for visualizing portfolio properties and risk measures.

Documentation

Online documentation is available at Documentation.

The docs include a tutorial with examples that shows the capacities of Riskfolio-Lib.

Dependencies

Riskfolio-Lib supports Python 3.6+.

Installation requires:

Installation

The latest stable release (and older versions) can be installed from PyPI:

pip install riskfolio-lib

Development

Riskfolio-Lib development takes place on Github: https://github.com/dcajasn/Riskfolio-Lib

Module Plans

The plan for this module is to add more functions that will be very useful to asset managers.

  • Mean Entropic Risk Optimization Portfolios.
  • Mean Risk Worst Case Optimization (Min Max):
    • Box and elipsoidal constraints for mean and covariance matrix.
    • Worst covariance and mean estimation using bootstrapping.
    • Worst covariance and mean estimation using percentage change.
  • Add functions to estimate Duration, Convexity, Key Rate Durations and Convexities of bonds without embedded options (for loadings matrix).
  • Add more functions based on suggestion of users.

Metadata

Release files for riskfolio-lib 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for riskfolio-lib 0.0.5
File Size Uploaded
Riskfolio-Lib-0.0.5.tar.gz 4.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for riskfolio-lib 0.0.5
File Interpreter ABI Platform
Riskfolio_Lib-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 MB

Release files / Riskfolio-Lib-0.0.5.tar.gz

Download URL Riskfolio-Lib-0.0.5.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2d6e8abf454dd198a310e632272de7936e78eabd059176235fc22d56328c0c30
BLAKE2b-256 checksum
How to use checksums
09a42d37f22590b5e81ac465a1e19c677af0c5c3dfc40ac24d5e7b028f2f6f5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Release files / Riskfolio_Lib-0.0.5-py3-none-any.whl

Download URL Riskfolio_Lib-0.0.5-py3-none-any.whl
Size 33.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
118e1d958b2a6a6da867f0c6436fb47f218a64303778fa9abcc467b5807659de
BLAKE2b-256 checksum
How to use checksums
5110f49b223ae99de484a222a8d8eaaec8de2f0e4c4944afab41d9eedf38cc3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.7

Release history Release notifications | RSS feed

7.3.0

26 release files

7.2.1

31 release files

7.1.0

26 release files

7.0.0

26 release files

6.2.3

21 release files

6.2.2

21 release files

6.2.0

21 release files

6.1.1

26 release files

6.1.0

26 release files

5.0.1

20 release files

4.4.0

20 release files

4.1.0

20 release files

4.0.3

2 release files

4.0.2

2 release files

4.0.1

2 release files

4.0.0

2 release files

3.3.0

2 release files

3.2.0

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.2

2 release files

3.0.1

2 release files

3.0.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page