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.1.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.1-py3-none-any.whl (112.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optpricing-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e91af169176a8ac21660b7c1201020821cababb58cba43c88e7a355a7177f0bd
MD5 23c26b8e137b2caf0d4b7684dc8bfaa4
BLAKE2b-256 5fb7588174c8a978f56edc7fc364da37081dcdbd5bd191ad5f4a8139b6346609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optpricing-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c15af139fb56121758b846b6b6fb73a171b8c25e9c89af61b0153c71b84c023
MD5 d7d45fd9cd6055d521628c70b19bb126
BLAKE2b-256 e1a2d92b0610ca16cdf2dcfaf95d5759d06e022c231e9870ac2a76faf6018cd9

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