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
Release history Release notifications | RSS feed
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)
Built Distributions
Close
Hashes for ivolat3-0.0.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd465588774bc955b102b58aa8c7ec4521bac114428594a133b37177d816d2d |
|
MD5 | fab8d2893910f31d35cdd1d17c069a4c |
|
BLAKE2b-256 | 7de9599c615fd9198ea9db15d4923f1be4af4cce229dc85ff6e32bc3858abf16 |
Close
Hashes for ivolat3-0.0.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d749209510369f9586eb00d656d11d2aa80428d960ffa624869d8d7903b5cc |
|
MD5 | 44761571c57e998776ad7be50e0d4f1d |
|
BLAKE2b-256 | ad760f8630aff7b867e5bab1ecb9f75ce4b8e201817117a4e90b6202e856b8e3 |