Skip to main content

A financial options pricing and analysis library.

Project description

QuantFin

CI/CD PyPI Version License: MIT Python 3.10+

A Python library for pricing and calibrating financial options.

Introduction

Welcome to QuantFin, a comprehensive Python toolkit for pricing and calibrating financial derivatives. This library was originally designed for me to learn about the more nuanced methods of quantitative finance and has since grown into a robust framework for analysis.

QuantFin is structured around four core pillars:

  • Atoms: Fundamental data types (Option, Stock, Rate) that ensure consistency and clarity of inputs across the library.
  • Models: A broad library ranging from classical Black-Scholes-Merton to advanced stochastic volatility (Heston, SABR) and jump/Lévy processes.
  • Techniques: Multiple pricing engines—closed-form formulas, FFT, numerical integration, PDE solvers, lattice methods, and Monte Carlo (numba-accelerated with variance reduction methods baked in).
  • Workflows: High-level orchestrators that automate end-to-end tasks like daily calibration and out-of-sample backtesting, all accessible via a CLI or an interactive dashboard.

Quick Start

Get started in minutes using the command-line interface.

# 1. Install the library with all features, including the dashboard
pip install optPricing[app]

# 2. Download historical data for a ticker (used by some models)
quantfin data download --ticker SPY

# 3. Launch the interactive dashboard to visualize the results
quantfin dashboard

# 4. See a demo of the engine
quantfin demo

Documentation & Links

For a detailed tutorial, full API reference, and more examples, please see the official documentation.

To explore all available commands, run:

quantfin --help

Contributing & License

See CONTRIBUTING and 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

optpricing-2.0.0.tar.gz (870.3 kB view details)

Uploaded Source

Built Distribution

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

optpricing-2.0.0-py3-none-any.whl (109.3 kB view details)

Uploaded Python 3

File details

Details for the file optpricing-2.0.0.tar.gz.

File metadata

  • Download URL: optpricing-2.0.0.tar.gz
  • Upload date:
  • Size: 870.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for optpricing-2.0.0.tar.gz
Algorithm Hash digest
SHA256 efcb7ac34127d03e2b8778afe0c6c93a9a005b4d23560094ef23f6c1b70059d3
MD5 50865b2981f973fe6000af8811491312
BLAKE2b-256 d369ce08c5400da7c8dbac8288858f80d8295542000b07a7d84be482300f3a0f

See more details on using hashes here.

File details

Details for the file optpricing-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: optpricing-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 109.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for optpricing-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0180053914a538aea6e3cdb8d4cea3a17b0775e9c669d7cdaac4093462a513dc
MD5 ef4f83cd2de356c5048d7f7cb69f0161
BLAKE2b-256 24f2a864d8efd0360d68a79f4199ab80aaff4651c8faa71887219f9efc54b82d

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