Skip to main content

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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

volg-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file volg-0.1.1.tar.gz.

File metadata

  • Download URL: volg-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for volg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 05655c31ae3ad5997be3190aef39b26bb670eb67aaf019e9299690810baea8de
MD5 a1b5b17b789d537939499a45cdff52a8
BLAKE2b-256 86c4fecd40fef262dd4bfe9ac8a88b93e26fc4aac00a342c61e88ae518da16cb

See more details on using hashes here.

File details

Details for the file volg-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: volg-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.7

File hashes

Hashes for volg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d6785fb6053a25f3c92d6e1a7d17a374e4c91dd2e51687d08838cf1ab8d0fc1b
MD5 3c34fbd0063380b8cf737b49c0ddc82e
BLAKE2b-256 1a185cc8940f168d833e4066a621d0fecdcb668a928f6ab5c947b3385a5d63cc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page