Can we have daily 'price band' included in our CSV data? #229
Replies: 3 comments
-
|
since we get next day price band on eod if possible we can include that too so it will help in analyzing stocks for next trading sessions ... |
Beta Was this translation helpful? Give feedback.
-
|
@tradewithmadhan from datetime import datetime
import pandas as pd
from nse import NSE
with NSE(download_folder="") as nse:
# Returns the filepath of the downloaded file
file = nse.priceband_report(datetime(2025, 4, 9))
# Load the file in a pandas DataFrame
df = pd.read_csv(file, index_col="Symbol")
# Filter stocks by Series
df = df[df.Series.isin(("EQ", "BE", "BZ"))]
# Query the band info
print(df.loc["MARKSANS", "Band"]) # 20
print(df.loc["HDFCBANK", "Band"]) # No Band |
Beta Was this translation helpful? Give feedback.
-
|
Do you actually need historical price band data? This does require some work in downloading the reports and updating the compile scripts. The price band info does not change very often, so its also going to be repetitive information in the stock files that will only serve to bloat the file sizes. I'm not sure if there are use cases for this data. If this is something many are requesting, I dont mind implementing it. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Can we have daily 'price band' included in our CSV data?
Beta Was this translation helpful? Give feedback.
All reactions