Skip to main content

A financial options pricing and analysis library.

Project description

optpricing

CI/CD PyPI Version License: MIT Python 3.10+

A Python library for pricing and calibrating financial options.

Introduction

Welcome to optpricing, 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.

optpricing 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"

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

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

Documentation & Links

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

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.2.0.tar.gz (12.5 MB view details)

Uploaded Source

Built Distribution

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

optpricing-2.2.0-py3-none-any.whl (122.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: optpricing-2.2.0.tar.gz
  • Upload date:
  • Size: 12.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for optpricing-2.2.0.tar.gz
Algorithm Hash digest
SHA256 4df7371ee2cef885b992f3a3ee1d492b0b074a2d5ae260fe67719170dadcbef3
MD5 5245984aba89b54290cb9d20a047304c
BLAKE2b-256 b460703e6bb889536e87593232e283277dd0c88d5ebf8ab345f45e24f03575b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for optpricing-2.2.0.tar.gz:

Publisher: publish.yml on Diljit22/quantFin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: optpricing-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 122.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for optpricing-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2891c843da13e4f4c81bb9ec81fadb9531b28f73a1db4b580cbd73d65eb96ff3
MD5 c0c0bd30970b72b4f8ab4df303aa56bb
BLAKE2b-256 9b472fcbf5a2582a3bf4924eafa4b23299085194926890374d2e3800855839c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for optpricing-2.2.0-py3-none-any.whl:

Publisher: publish.yml on Diljit22/quantFin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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