nsepy
nsepy copied to clipboard
get_rbi_ref_history not returning all the dates - BUG
get_rbi_ref_history is supposed to return currencies values. When asking for date(2019,1,1) to date(2019,3,1) everything is fine... BUT When you ask for a longer period like date(2019,1,1) to date(2019,4,1) the dates 2019-01-01 to 2019-01-15 are missing in the dataframe. As I understand, values are fetched from the following page https://www1.nseindia.com/products/content/derivatives/currency/historical_rbiRate.htm That form has probably been changed (returns smaller list of data) and get_rbi_ref_history was not adapted. Please confirm the bug. Thank you.
Temporary solution is to ask two months by two months and concatenating the dataframes. curr1 = gcurr(date(2019,1,1), date(2019,2,28)) curr2 = gcurr(date(2019,3,1), date(2019,4,30)) curr3 = gcurr(date(2019,5,1), date(2019,6,30)) curr=pd.concat([curr1,curr2,curr3])
Yes u r right maximum 50 days can be fetched in 1 time...
Now the url returns this :
So no data at all can be retrieved.