Skip to main content

Basic options pricing in Python

Project description

# yaopt

[<img src=”https://badge.fury.io/py/yaopt.png”>](http://badge.fury.io/py/yaopt) [<img src=”https://travis-ci.org/someben/yaopt.png?branch=master”>](https://travis-ci.org/someben/yaopt) [<img src=”https://pypip.in/d/yaopt/badge.png”>](https://pypi.python.org/pypi/yaopt)

###### Basic options pricing in Python

&ldquo;Oh cool. Probably a little easier than spinning up the QuantLib stack.&rdquo; &mdash; [Wes McKinney](https://github.com/wesm), creator of [Pandas](https://github.com/pydata/pandas)

### Features

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

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

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

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

  • Minimal dependencies, just Numpy & SciPy.

  • 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.

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.2.tar.gz (17.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: yaopt-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 1324fb15750755e9d711980a23c5fee1ac30eb2d521bd450e3b86a9d3b480d0f
MD5 05e325dd8c176558e074492e7a85063e
BLAKE2b-256 78d899383de6ad5bbc7803fa9585a420c0c96ab27872bf8626f9ad0d5610fe08

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