European Options Pricing Library
Project description
Installation
pip install ivolat
Examples
import ivolat # 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 ivolat.prem_call(s, k, r, q, t, sigma) # call opition implied volatility ivolat.ivolat_call(s, k, r, q, t, p) # Greeks # call delta ivolat.delta_call(s, k, r, q, t, sigma) # Second-order Greeks # gamma ivolat.gamma(s, k, r, q, t, sigma) # vanna ivolat.vanna(s, k, r, q, t, sigma) # vomma (volga) ivolat.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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
ivolat-0.1.2-py2-none-any.whl
(21.5 kB
view details)
File details
Details for the file ivolat-0.1.2-py2-none-any.whl
.
File metadata
- Download URL: ivolat-0.1.2-py2-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9586028cb7a218aa790788910b14a0415478a9560d303685da09b1ec8b65cde4 |
|
MD5 | a96e46f0f0ee2f6bc225f6c4da51d316 |
|
BLAKE2b-256 | 8b324c1800600896e326960d58f9890635c912f0811c494615a1fc2fcc262806 |