Skip to main content

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_price
  • result.chain.ce
  • result.chain.pe
  • strike_price
  • open_interest
  • gamma
  • iv
  • last_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/*

Metadata

Release files for gamma-wall 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gamma-wall 0.1.1
File Size Uploaded Provenance Actions
gamma_wall-0.1.1.tar.gz 8.9 kB Without provenance Details for gamma_wall-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gamma-wall 0.1.1
File Interpreter ABI Platform Actions
gamma_wall-0.1.1-py3-none-any.whl Python 3 none any Details for gamma_wall-0.1.1-py3-none-any.whl

Total release size: 16.9 kB

Release files / gamma_wall-0.1.1.tar.gz

Download URL gamma_wall-0.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
098adecd756ab576d7b293ec01ef883f78f3e1401de29aeef9bd51aaad616f33
BLAKE2b-256 checksum
How to use checksums
3e7ecd51a6e748d16b3eaa40390dca01fa87ed5b1f53ce449551a4a23f2b06af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / gamma_wall-0.1.1-py3-none-any.whl

Download URL gamma_wall-0.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6219a7677679c508dc68cf64d34b60743958183eb1c4cb9d453a48ca68fc974a
BLAKE2b-256 checksum
How to use checksums
560c3d974cf82dd9ea4ded84b8204a8361a4a280f7b44d4552bb490f0d76b497
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for gamma-wall 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page