Skip to main content

PyPI version Python versions Python downloads build codecov

Quantitative analysis and pricing tools.

btcvol

Installation

pip install quantflow

Optional dependencies

  • data — data retrieval: pip install quantflow[data]
  • ml — training the Deep Implied Volatility model: pip install quantflow[ml]

Features

  • Stochastic Processes: a library of continuous-time models including Wiener processes, Poisson jumps, CIR mean-reverting dynamics, Heston stochastic volatility, jump-diffusion models, and the Barndorff-Nielsen & Shephard (BNS) model. Each process exposes its characteristic function for analytical pricing.

  • Option Pricing and Calibration: Black-Scholes pricing, implied volatility surfaces, SVI parameterisation, put/call parity, and model calibration (Heston, Double Heston). Includes support for both inverse (crypto) and standard (equity) quoting conventions.

  • Interest Rates: yield curve construction via Nelson-Siegel and Vasicek models, discount factor calculation, and rate interpolation.

  • Market Data: connectors for Deribit, Yahoo Finance, Financial Modeling Prep (FMP), FRED, the Federal Reserve, and US Fiscal Data APIs.

  • Time Series Analysis: exponentially weighted moving averages (EWMA), Kalman filtering, super-smoothers, and OHLC bar utilities.

  • JSON Serializable: all models and pricers are built on Pydantic, making them fully serializable to and from JSON.

Contributing

Contributions are welcome! See the contributing guide for how to get started, including documentation contributions, which are a great entry point.

Citation

If you use Quantflow in your research, please cite it using the metadata in CITATION.cff.

License

Released under the BSD 3-Clause License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantflow-1.1.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

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

quantflow-1.1.0-py3-none-any.whl (160.9 kB view details)

Uploaded Python 3

File details

Details for the file quantflow-1.1.0.tar.gz.

File metadata

  • Download URL: quantflow-1.1.0.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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 quantflow-1.1.0.tar.gz
Algorithm Hash digest
SHA256 5920ddec2ce938199859efce27105d2ed95c7a1d7d5a0180276bc8f6173e267b
MD5 c3dc673c4a14a52619b38d6e56f95a10
BLAKE2b-256 ee23a84a3e88abbe35b92b47c1db947d63d34cca039ca6af8a45b2ba47b87a9c

See more details on using hashes here.

File details

Details for the file quantflow-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantflow-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 160.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","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 quantflow-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93dd53933d087debbd89ff25bbc5cafab4290759a384edf6e8200c037839e4b9
MD5 2a977be3b282ef8860fb7e10e5477b92
BLAKE2b-256 4af247622c32ab0b2fd7a27ed872514ad68ea14c2ce37c26b91e83d8035974ba

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 Sentry Error logging StatusPage Status page