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.2.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.2.0-py3-none-any.whl (163.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantflow-1.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 e93e68c34c34f2adfec38f5314c7dd331c226dd1513a495c226ff5827988add0
MD5 f3863f76c4b300b9affa96a793b5df73
BLAKE2b-256 4542d8dfba14ef9ea27822c79663b75941e78d41c15a89b4d35a396c3310bf6d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantflow-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 163.4 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b37070cc969bb836bde5789f0c8fa5c94dc2c91a2cfa0ce1e329aa430530b22
MD5 3593c50d1eff2e7d814b67ef7de25019
BLAKE2b-256 477382a65f386b917c598bfa4a74d2520d2c967f5b6d6c65822b10ca26d48099

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