Open gauravdattjoshi opened 1 year ago
@gauravdattjoshi use the symbol name as "NIFTY" not "NIFTY 50"
Try this instead
from nselib import capital_market
data = capital_market.index_data(index="NIFTY 50", from_date='06-06-2023', to_date='06-07-2023')
THE ERROR IS :
To me, it appears the json response is empty. Please look into the issue.