Skip to main content

Volume breakout scanner built on top of the Nubra Python SDK.

Project description

nubra-volume-breakout

nubra-volume-breakout is a Python library for scanning stocks based on volume breakout using the Nubra Python SDK.

It fetches historical OHLCV data using MarketData.historical_data(...), derives candle volume for intraday intervals, calculates the average lookback volume, computes:

volume_ratio = current_volume / average_volume

and returns a ranked pandas DataFrame.

Installation

pip install nubra-volume-breakout==0.1.1

Quickstart

See example/quickstart.py.

from nubra_python_sdk.marketdata.market_data import MarketData
from nubra_python_sdk.start_sdk import InitNubraSdk, NubraEnv
from nubra_volume_breakout import run_volume_breakout

nubra = InitNubraSdk(NubraEnv.PROD, env_creds=True)
market_data = MarketData(nubra)

stocks = ["ABB", "ADANIENSOL", "ADANIENT", "ADANIGREEN", "ADANIPORTS"]

volume_breakout = run_volume_breakout(
    market_data=market_data,
    stocks=stocks,
    lookback_days=10,
    interval="1d",
    rank=10,
)

print(volume_breakout.head())

Returned DataFrame

The scanner returns only these columns:

  • symbol
  • candle_time
  • current_volume
  • average_volume
  • volume_ratio

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_volume_breakout-0.1.1.tar.gz (9.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_volume_breakout-0.1.1-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nubra_volume_breakout-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e2b992e4decca46f4c8165ec18e55e2aa73a8268bceb11d3da25e2fcfd67f576
MD5 15fcc8858883281269508d4e59a8cadd
BLAKE2b-256 fbb0179dd44c65923866b379fd86788cf5efc336a023cee51cc557df61055cce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nubra_volume_breakout-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 760e0fd5d594743ec5824b0f926fb87f5dc04ae2c52157af020b82b85e2cd826
MD5 b0f63a35f3425342a255c6af7ab94a3e
BLAKE2b-256 67f92d28f502544b7762ea64569001e35705b4925d47391ea56046fa945a4c09

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