Skip to main content

European Options Pricing Library

Project description

Installation

pip install ivolat3

Examples

import ivolat3

# stock price
s = 10000
# option strike price
k = 10500
# risk-free interest rate
r = 0.001
# drift rate (dividend)
q = 0.1
# time remaining until expiration (in years)
t = 20.0 / 365.0
# annual volatility of stock price
sigma = 0.2
# call option price
p = 40


# call opition price
ivolat3.prem_call(s, k, r, q, t, sigma)

# call opition implied volatility
ivolat3.ivolat_call(s, k, r, q, t, p)

# Greeks
# call delta
ivolat3.delta_call(s, k, r, q, t, sigma)

# Second-order Greeks
# gamma
ivolat3.gamma(s, k, r, q, t, sigma)

# vanna
ivolat3.vanna(s, k, r, q, t, sigma)

# vomma (volga)
ivolat3.vomma(s, k, r, q, t, sigma)

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

ivolat3-0.0.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distributions

ivolat3-0.0.0-cp35-cp35m-win_amd64.whl (13.8 kB view hashes)

Uploaded CPython 3.5m Windows x86-64

ivolat3-0.0.0-cp35-cp35m-win32.whl (13.1 kB view hashes)

Uploaded CPython 3.5m Windows x86

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