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
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:
symbolcandle_timecurrent_volumeaverage_volumevolume_ratio
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2b992e4decca46f4c8165ec18e55e2aa73a8268bceb11d3da25e2fcfd67f576
|
|
| MD5 |
15fcc8858883281269508d4e59a8cadd
|
|
| BLAKE2b-256 |
fbb0179dd44c65923866b379fd86788cf5efc336a023cee51cc557df61055cce
|
File details
Details for the file nubra_volume_breakout-0.1.1-py3-none-any.whl.
File metadata
- Download URL: nubra_volume_breakout-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.4 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 |
760e0fd5d594743ec5824b0f926fb87f5dc04ae2c52157af020b82b85e2cd826
|
|
| MD5 |
b0f63a35f3425342a255c6af7ab94a3e
|
|
| BLAKE2b-256 |
67f92d28f502544b7762ea64569001e35705b4925d47391ea56046fa945a4c09
|