nsepy
nsepy copied to clipboard
Not recieving date when downloading price history
Hi all, I am no longer getting the date as a part of my data frame when I download equity price history. Here is my code.
Pranav
import nsepy
import datetime
sbin = nsepy.get_history(symbol='SBIN', start=datetime.date(2021,1,1),end=datetime.date(2021,1,10))
print(sbin.columns)
Same issue here.
Error:
requests.exceptions.SSLError: HTTPSConnectionPool(host='www1.nseindia.com', port=443): Max retries exceeded with url: /products/dynaContent/common/productsSymbolMapping.jsp?dataType=PRICEVOLUMEDELIVERABLE&segmentLink=3&dateRange=&symbol=SBIN&series=EQ&symbolCount=1&fromDate=01-01-2019&toDate=10-01-2019 (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))
Hi, My issue was different. I failed to realize that the date was coming as the index to the data frame so I had to add it as a separate column and then wwork with it. @ronaldpaul what is your environment please? I suspect you have a missing library such that the nsepy module is unable to establish a secure connection. Is the requests module working in your setup?