A Python package for calculating option Greeks and implied volatility.
Project description
volg
A Python package for calculating option Greeks and implied volatility.
Installation
pip install volg
Features
- Calculate implied volatility (IV) using binary search method
- Compute option Greeks (Delta, Gamma, Vega, Theta, etc.)
- Calculate exposures (Delta exposure, Gamma exposure, etc.)
- Support for both call and put options
Usage
from volg import greek
# Calculate implied volatility
iv = greek.iv(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
# Calculate Greeks
greeks = greek.greeks(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
# Process a dataframe with option data
df = greek.compute_greeks(df)
df = greek.compute_exposure(df)
License
MIT License
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
volg-0.1.2.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
volg-0.1.2-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file volg-0.1.2.tar.gz.
File metadata
- Download URL: volg-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
211981af66dffd7c7a8efa2df7c45946f7645c69b81d7a51def1d5121d9d5c5b
|
|
| MD5 |
b06368ac6bd25e19716e521e687a6e5c
|
|
| BLAKE2b-256 |
94bd6800e740474e0f94c1123d9795f18bd53bf8019cf1e517d96893b987ac53
|
File details
Details for the file volg-0.1.2-py3-none-any.whl.
File metadata
- Download URL: volg-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c33927e7986c5d10a63a73815604559b14fbd852772ee8c4f84fcce06092d21
|
|
| MD5 |
db0fd8589db6e1f65da6d0e1da0cfdd9
|
|
| BLAKE2b-256 |
50e199d29adbe5860425a7cce8b25d3a045804af0885571120860919c944ea15
|