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

Uploaded Python 3

File details

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

File metadata

  • Download URL: qfwp-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 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.1.1.tar.gz
Algorithm Hash digest
SHA256 d72bfec8370e14569ffddac8c8afa7a0da29477d4efc53b343e0b15ce8d488bb
MD5 8ebdc94881470a7c967966b44bc7653a
BLAKE2b-256 6e2e50f14331713064c52dbea106a948e7c97fb18f8f2f020104d6b858fb48c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qfwp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0369e08d5d8f076c0fd200cb63fca84ac2a2d0ad8252cdf11d99db5168c5963c
MD5 7f6452f522e3773328916944ddf08e3f
BLAKE2b-256 39524fbda154f5b95b1fe9acf1ee40a48f26fcb25e9ed6f0bd4bd34bea1c7f14

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