Skip to main content

quantitative analysis

Project description

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.

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

quantflow-1.0.0.tar.gz (3.1 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.0.0-py3-none-any.whl (150.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quantflow-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • 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 quantflow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6de322614cf6917df902da980f7c1b3e671ccc1a902e8b50e5284fa9236f4802
MD5 cf323d3ba10d06190e82e905e7ef37b7
BLAKE2b-256 16ac516bedcf20a798a105441941b43b01eccd7870285391400e949004dced50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: quantflow-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 150.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • 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 quantflow-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04a9d621285544dd6458369b00ddb9a40fab85f121781c5a973ca81164b9459f
MD5 d4834f3304f948079d032ccb90fc0691
BLAKE2b-256 c5fefc1e894ebcb9503761a0afab1fd3e1b731e2abf5edd7f319fa5f86ed27ce

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