Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pymetrix-finance

Financial econometrics for pymetrix, as a plugin: value at risk and expected shortfall with their backtests, multivariate GARCH (CCC, DCC, asymmetric DCC, BEKK), copulas (Gaussian, t, Archimedean, BB1, BB6, BB7, BB8, Tawn, rotated; fitted or rank margins; family comparison and goodness of fit by parametric or multiplier bootstrap; R-, C- and D-vines with a Rosenblatt-transform goodness-of-fit test; Patton's time-varying copulas and DCC copulas of several series), risk contributions, returns and performance, factor models and the GRS test, portfolios and strategy backtests, event studies, realised volatility and HAR, option pricing, implied volatility and volatility surfaces (SVI, SABR, Heston), yield curves and the dynamic Nelson-Siegel model, bonds, and credit risk (Merton, CDS).

pip install pymetrix[finance]        # or: pip install pymetrix-finance
from pymetrix import Dataset
from pymetrix_finance import performance, value_at_risk     # also importable from pymetrix once installed

ff = Dataset.example("french")    # downloaded from Kenneth French's data library on first use, then cached
value_at_risk(ff, "mkt_rf", level=0.99, method="garch", dist="t", asymmetric=True).backtests()

In the app, everything is under the Finance menu and workspace. The tutorial (also a notebook) walks through it on the example datasets, and its tests check what it says. The Fama-French returns (french) are not shipped, as Kenneth French's data library gives no licence to redistribute them: the first Dataset.example("french") downloads them from the library and keeps them in ~/.pymetrix/cache/datasets/.

The plugin needs nothing beyond pymetrix's own dependencies. Its checks are listed in pymetrix's validation page; arch and QuantLib are used there as test oracles only. License: BSD-3-Clause.

Development

From the repository root: pip install -e packages/pymetrix-finance, then python -m pytest; the repository's test run includes this package's tests, which skip when it is not installed.

Metadata

Release files for pymetrix-finance 0.1.0a1

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

Source distribution (sdist)

Source distribution for pymetrix-finance 0.1.0a1
File Size Uploaded Provenance Actions
pymetrix_finance-0.1.0a1.tar.gz 652.4 kB With provenance Details for pymetrix_finance-0.1.0a1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pymetrix-finance 0.1.0a1
File Interpreter ABI Platform Actions
pymetrix_finance-0.1.0a1-py3-none-any.whl Python 3 none any Details for pymetrix_finance-0.1.0a1-py3-none-any.whl

Total release size: 1.2 MB

Release files / pymetrix_finance-0.1.0a1.tar.gz

Download URL pymetrix_finance-0.1.0a1.tar.gz
Size 652.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9e39b0c3648a9214ce918702c8e616f5c2c3b56373ccb062f355d2b520680e7f
BLAKE2b-256 checksum
How to use checksums
2f8c656902797c2f3ed8c3d2dde5788f141b79078c473b182f6d0f483888d723
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / pymetrix_finance-0.1.0a1-py3-none-any.whl

Download URL pymetrix_finance-0.1.0a1-py3-none-any.whl
Size 586.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ba68e2ac918b128569456bb146c75fd539ae99ec5f69e17de2edde53946c507
BLAKE2b-256 checksum
How to use checksums
70e3d06a341394034b183ac82ca43dd82e05a12225064005d065d96e30e7a550
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for pymetrix-finance 0.1.0a1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pymetrix_finance-0.1.0a1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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