Skip to main content

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_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/*

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

gamma_wall-0.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

gamma_wall-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

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

Hashes for gamma_wall-0.1.1.tar.gz
Algorithm Hash digest
SHA256 098adecd756ab576d7b293ec01ef883f78f3e1401de29aeef9bd51aaad616f33
MD5 90ae17d67ab5386e5a49369d24590d9c
BLAKE2b-256 3e7ecd51a6e748d16b3eaa40390dca01fa87ed5b1f53ce449551a4a23f2b06af

See more details on using hashes here.

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

Hashes for gamma_wall-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6219a7677679c508dc68cf64d34b60743958183eb1c4cb9d453a48ca68fc974a
MD5 89b655ebf360305b24c747ba5a2a349d
BLAKE2b-256 560c3d974cf82dd9ea4ded84b8204a8361a4a280f7b44d4552bb490f0d76b497

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