Skip to main content

Options wall proximity scanner built on top of the Nubra Python SDK.

Project description

nubra_oi_walls

nubra_oi_walls packages the options wall proximity scanner as a reusable Python library on top of the official Nubra Python SDK.

Install

pip install nubra_oi_walls

Usage

from nubra_python_sdk.marketdata.market_data import MarketData
from nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from nubra_oi_walls import run_multi_wall_proximity_scan, run_wall_proximity_scan

nubra = InitNubraSdk(NubraEnv.UAT)
market_data = MarketData(nubra)

summary_df = run_wall_proximity_scan(
    market_data=market_data,
    stocks=["NIFTY", "BANKNIFTY", "RELIANCE", "HDFCBANK"],
    normalize=False,
    exchange="NSE",
)

print(summary_df)

For multi-wall output when top_n > 1:

multi_df = run_multi_wall_proximity_scan(
    market_data=market_data,
    stocks=["NIFTY", "BANKNIFTY", "RELIANCE", "HDFCBANK"],
    normalize=False,
    top_n=3,
    exchange="NSE",
)

print(multi_df)

There is also a ready-to-run example in quickstart.py. That quickstart runs both DataFrame-returning functions.

Authentication and environment

The preferred integration is to pass your existing MarketData object from your main Nubra session into the scan functions.

The scanner defaults to the Nubra UAT environment only when it has to create its own internal client. To switch that fallback behavior to live usage, set:

$env:NUBRA_OI_WALLS_ENV = "PROD"

If you pass market_data, the package will reuse your existing Nubra session instead of creating a new one.

Import shape

from nubra_oi_walls import run_wall_proximity_scan, run_multi_wall_proximity_scan

Returned data

run_wall_proximity_scan(...) returns the classic single-wall summary as a pandas DataFrame.

run_multi_wall_proximity_scan(...) returns the expanded wall candidates as a pandas DataFrame.

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

nubra_oi_walls-0.1.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

nubra_oi_walls-0.1.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nubra_oi_walls-0.1.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for nubra_oi_walls-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b7fcf6bb99080a86a2925c9eb4c3922c26b3f7c18a27020da053319e59add3f
MD5 d3bf59875918b65ab831890ef7883ec7
BLAKE2b-256 d56b2e6aae81fe3fbb6c0390031ef128a5c215490441198822de3be432a12fa4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nubra_oi_walls-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for nubra_oi_walls-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd99e8858a2fcfd9f0c5448c2c7a7a2bed2389e071e2d022c43e4503a1ec3672
MD5 534e9071a45e5854bda1792028047c77
BLAKE2b-256 38e9a20fef62090f07e83a7dc9c6a6bcb868ac87a5e83e5e0617bc5e5e2c4f54

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