Gamma Exposure analytics for Nubra option-chain snapshots
Project description
gamma-wall
Gamma Exposure (GEX) analytics for Nubra option-chain snapshots.
This package works like nubra_talib: install it, import a function, pass the Nubra SDK output, and print the analytics. It does not require JSON files, Streamlit, React, or any frontend.
Install
python -m pip install gamma-wall
For prettier terminal tables:
python -m pip install "gamma-wall[table]"
Minimal Usage
from nubra_python_sdk.marketdata.market_data import MarketData
from nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from gamma_wall import print_gex
nubra = InitNubraSdk(NubraEnv.UAT, env_creds=True)
market_data = MarketData(nubra)
result = market_data.option_chain("NIFTY", exchange="NSE")
print_gex(result, symbol="NIFTY")
print_gex() reads these fields from the Nubra SDK response:
result.chain.current_priceresult.chain.ceresult.chain.pestrike_priceopen_interestgammaivlast_traded_price
If you want to override the spot price:
print_gex(result, symbol="NIFTY", spot_price=24512)
What It Prints
- Top gamma walls by absolute net gamma
- Strongest positive gamma wall
- Strongest negative gamma wall
- Gamma flip zone
- Dealer positioning bias
- Total market gamma
- Top 5 call walls
- Top 5 put walls
- Decision levels summary
Formula
GEX = gamma * OI * spot_price^2
Put GEX is signed negative:
net_gex = call_gex + put_gex
Python API
from gamma_wall import calculate_gex, aggregate_by_strike, summarize_gex, print_gex
print_gex() returns the aggregated strike-level DataFrame if you want to use it further:
levels = print_gex(result, symbol="NIFTY")
summary = summarize_gex(levels)
Build For PyPI
python -m pip install --upgrade build twine
python -m build
python -m twine upload dist/*
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 Distribution
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
File details
Details for the file gamma_wall-0.1.1.tar.gz.
File metadata
- Download URL: gamma_wall-0.1.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
098adecd756ab576d7b293ec01ef883f78f3e1401de29aeef9bd51aaad616f33
|
|
| MD5 |
90ae17d67ab5386e5a49369d24590d9c
|
|
| BLAKE2b-256 |
3e7ecd51a6e748d16b3eaa40390dca01fa87ed5b1f53ce449551a4a23f2b06af
|
File details
Details for the file gamma_wall-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gamma_wall-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6219a7677679c508dc68cf64d34b60743958183eb1c4cb9d453a48ca68fc974a
|
|
| MD5 |
89b655ebf360305b24c747ba5a2a349d
|
|
| BLAKE2b-256 |
560c3d974cf82dd9ea4ded84b8204a8361a4a280f7b44d4552bb490f0d76b497
|