Name | volg JSON |
Version |
0.1.6
JSON |
| download |
home_page | None |
Summary | A Python package for calculating option Greeks and implied volatility. |
upload_time | 2025-07-20 08:41:18 |
maintainer | None |
docs_url | None |
author | Vinod Bhadala |
requires_python | >=3.8 |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# volg
A Python package for calculating option Greeks and implied volatility.
## Installation
```bash
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
```python
import volg
# Calculate implied volatility
iv = volg.greek.iv(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
# Calculate Greeks
greeks = volg.greek.greeks(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
# Process a dataframe with option data
df = volg.greek.compute_greeks_vectorized(df)
df = volg.greek.compute_exposure(df)
```
### Alternative import style:
```python
from volg import greek
# Calculate implied volatility
iv = greek.iv(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
# Calculate implied volatility using vectorized method on df columns
df['iv'] = greek.iv_vectorized(df['sfut_price'], df['strike_price'], 0, df['dte'], df['close_ce'], flag='C')
# Calculate Greeks
greeks = greek.greeks(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')
#Option to calculate greeks in vectorized on dataframe
column_mapping = {
"sfut_price": "future_price",
"strike_price": "strike_price",
"dte": "dte",
"count": "count",
"ce_ltp": "close_ce",
"pe_ltp": "close_pe"
}
greek_df = greek.compute_greeks_vectorized(df, columns=column_mapping)
```
## License
MIT License
Raw data
{
"_id": null,
"home_page": null,
"name": "volg",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Vinod Bhadala",
"author_email": "vinodbhadala@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/77/2a/69d97b161f2b08427d2c798bcf5573069c2b9fc7240e9fe87bb944741acc/volg-0.1.6.tar.gz",
"platform": null,
"description": "\n# volg\n\nA Python package for calculating option Greeks and implied volatility.\n\n## Installation\n\n```bash\npip install volg\n```\n\n## Features\n\n- Calculate implied volatility (IV) using binary search method\n- Compute option Greeks (Delta, Gamma, Vega, Theta, etc.)\n- Calculate exposures (Delta exposure, Gamma exposure, etc.)\n- Support for both call and put options\n\n## Usage\n\n```python\nimport volg\n\n# Calculate implied volatility\niv = volg.greek.iv(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')\n\n# Calculate Greeks\ngreeks = volg.greek.greeks(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')\n\n# Process a dataframe with option data\ndf = volg.greek.compute_greeks_vectorized(df)\ndf = volg.greek.compute_exposure(df)\n```\n\n### Alternative import style:\n\n```python\nfrom volg import greek\n\n# Calculate implied volatility\niv = greek.iv(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')\n\n# Calculate implied volatility using vectorized method on df columns\ndf['iv'] = greek.iv_vectorized(df['sfut_price'], df['strike_price'], 0, df['dte'], df['close_ce'], flag='C')\n\n# Calculate Greeks\ngreeks = greek.greeks(spot_price, strike_price, interest_rate, days_to_expiry, option_price, flag='C')\n\n\n#Option to calculate greeks in vectorized on dataframe\ncolumn_mapping = {\n \"sfut_price\": \"future_price\",\n \"strike_price\": \"strike_price\",\n \"dte\": \"dte\",\n \"count\": \"count\",\n \"ce_ltp\": \"close_ce\",\n \"pe_ltp\": \"close_pe\"\n}\n\ngreek_df = greek.compute_greeks_vectorized(df, columns=column_mapping)\n\n```\n\n## License\n\nMIT License\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package for calculating option Greeks and implied volatility.",
"version": "0.1.6",
"project_urls": {
"Homepage": "https://github.com/vbhadala/volg"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3928d201884167fab059f47fcef8607b7673bcd966578b786b11bd9862367120",
"md5": "08b8b4d776c49ed78e276360bcff6f80",
"sha256": "8177a49761385b1d0d2e0744c618ffd35900d80e1c2a98ea95dd6e23ef9c8ffc"
},
"downloads": -1,
"filename": "volg-0.1.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "08b8b4d776c49ed78e276360bcff6f80",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6583,
"upload_time": "2025-07-20T08:41:17",
"upload_time_iso_8601": "2025-07-20T08:41:17.984259Z",
"url": "https://files.pythonhosted.org/packages/39/28/d201884167fab059f47fcef8607b7673bcd966578b786b11bd9862367120/volg-0.1.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "772a69d97b161f2b08427d2c798bcf5573069c2b9fc7240e9fe87bb944741acc",
"md5": "a02428538e06df7f696d1a7b4556e6cc",
"sha256": "efa9872217577316c5efbf8e39c3386c33cfaf840adb9d3c8fb1412f75bfa0a1"
},
"downloads": -1,
"filename": "volg-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "a02428538e06df7f696d1a7b4556e6cc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 5193,
"upload_time": "2025-07-20T08:41:18",
"upload_time_iso_8601": "2025-07-20T08:41:18.960470Z",
"url": "https://files.pythonhosted.org/packages/77/2a/69d97b161f2b08427d2c798bcf5573069c2b9fc7240e9fe87bb944741acc/volg-0.1.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-20 08:41:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "vbhadala",
"github_project": "volg",
"github_not_found": true,
"lcname": "volg"
}