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,dev]"

# 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.3.tar.gz (872.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.3-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optpricing-2.0.3.tar.gz
  • Upload date:
  • Size: 872.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.3.tar.gz
Algorithm Hash digest
SHA256 74fb7269458b8b18d495e6d33150659f52eb021441140b83755c4c056973cb73
MD5 506feef0bd50d0438bba21a0de1b0dfb
BLAKE2b-256 79130a8b44149e2c6d6ef8e5398f3f3f6f0f7a302155ab8f741bcfe0eaa0c92e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optpricing-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 112.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6fdb3dbac8bec8b57617f112fcb99752439eb928d976e40c048cc1caba293a39
MD5 cd05751567a93e2add50acda0406714d
BLAKE2b-256 257cf476ed27f3ff93d5f2d3fc9fc5bf4805aebda35b587340db9034e77232f5

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