Skip to main content

Companion package for 'Learning Quantitative Finance with Python' (CRC Press): real historical episodes (qfwp.data) and the Trone synthetic market (qfwp.synth).

Project description

qfwp — companion package

Companion code for Learning Quantitative Finance with Python (CRC Press).

uv sync          # creates .venv from pyproject.toml + uv.lock
from qfwp import synth
mkt = synth.make_market(level=1, pathologies={"missing_days": 0.02})
mkt.prices.plot()

Two subpackages:

  • qfwp.data — the real historical episodes (1994 Real Plan, 1999 devaluation, 2008 GFC, 2011 EUR/SNB, 2014 elections). Loader API stable; data files land chapter by chapter.
  • qfwp.synth — the Trone synthetic market with a four-level complexity dial matching the book's four parts. Level 1 implemented; full dial design in SYNTH-DESIGN.md.

Everything seeded, everything pinned (uv.lock), so the book's figures reproduce exactly.

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

qfwp-0.2.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qfwp-0.2.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qfwp-0.2.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for qfwp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 233bc8ad466770e162a7d55cc359e0377b8320eab47b8767b89fd8d24a67b417
MD5 4dfe71ce5d0bc71c1ec0b0ca64f0da7c
BLAKE2b-256 3be225df468032b7fed216bac06b213fee8f6d553b7224ac5f8c83d04ecfa64f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qfwp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for qfwp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a0364dc180cc087d2fe4a5e77a3114bef385438cc35f16c169cc2ff28144c56
MD5 97b270651a100f6eefa3abff350d2245
BLAKE2b-256 001d934bf36eba6695c0d6315c179dea3cffa1bac95f46c0e5a8cca6d2735fd9

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