Skip to main content

Basic options pricing in Python

Project description

https://badge.fury.io/py/yaopt.png

Basic Options Pricing (in Python)

“Oh cool. Probably a little easier than spinning up the QuantLib stack.” — Wes McKinney, creator of Pandas.

Features

  1. Option valuation w/ Black-Scholes, lattice (binomial tree), and Monte Carlo simulation models.

  2. Basic Greeks calculation (delta, theta, rho, vega, gamma) across each valuation model.

  3. Discrete dividends support in the lattice (binomial tree) and Monte Carlo simulation models.

  4. Early exercise (American options) support in Monte Carlo simulation through the Longstaff-Schwartz technique.

  5. Minimal dependencies, just Numpy & SciPy.

  6. Free software, released under the MIT license.

History

0.1.0 (2023-01-10)

  • First release on PyPI.

0.1.2 (2024-09-06)

  • Fix to Black-Scholes implied volatility.

0.1.3 (2024-09-06)

  • Fix to README.

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

yaopt-0.1.3.tar.gz (17.9 kB view details)

Uploaded Source

File details

Details for the file yaopt-0.1.3.tar.gz.

File metadata

  • Download URL: yaopt-0.1.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for yaopt-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1425fbd800637484298088e877c6e1f8ea9ac435c3435d4b85919b6bb1700417
MD5 688f506c66df760dcab0af42d7cb482c
BLAKE2b-256 917007bc5ed5b1475f22320d7ea7fa8cb0c7c434e1eeaecc58ce955702b82a91

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page