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.0.tar.gz
(2.5 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.0-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file volg-0.1.0.tar.gz.
File metadata
- Download URL: volg-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a52a17a1bce54d336692302a5070caa039c5b60cc7e4c71f503aa6bce58b199
|
|
| MD5 |
602d3706294ec3033ecf4425565c02d0
|
|
| BLAKE2b-256 |
d6b4e5c45f5354b8a310bbabea045d9bd38894a4dd31596bf5e2c34c7ecd8a90
|
File details
Details for the file volg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: volg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a64a0c851a4922d34a4a20bcbb7ec1dfb8fde8c5956726b50db0ff4418e288b
|
|
| MD5 |
c99f0455b68ad1bcdad6a4b22004dd8f
|
|
| BLAKE2b-256 |
2ed2380e1207ad5cf5c16e504d707c0124d043d21e27ad627d105990d6c06fe7
|