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.1.0.tar.gz (871.1 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.1.0-py3-none-any.whl (113.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for optpricing-2.1.0.tar.gz
Algorithm Hash digest
SHA256 76a670da305a6a917acbda6911d64201e7260a34d7a8a3f743839a87ff382594
MD5 ac799452b470426f212cf2dd0330a762
BLAKE2b-256 0a15415163d8b856736e4229a72c0a2cdfdcda529edf5114af20961ebfdc7e05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: optpricing-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 113.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d68dd41445a94bf7d0ebdd942af78205eaab70321e3cd080ae0de8f14df28249
MD5 ba7d82307a3a5312803f23553a068ea6
BLAKE2b-256 28c3e89bcbee040ee4abbd191b2da782285169e2201e90a85ffc77aa54dcb851

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