nsepy icon indicating copy to clipboard operation
nsepy copied to clipboard

get_rbi_ref_history not returning all the dates - BUG

Open marc-odp opened this issue 4 years ago • 3 comments

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.

marc-odp avatar Jun 06 '20 18:06 marc-odp

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])

marc-odp avatar Jun 12 '20 09:06 marc-odp

Yes u r right maximum 50 days can be fetched in 1 time...

Manish6329 avatar Aug 10 '20 09:08 Manish6329

Now the url returns this : image So no data at all can be retrieved.

marc-odp avatar Apr 13 '23 18:04 marc-odp