Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Retry again in a minute. #60

Open
vardhannegi opened this issue Jun 16, 2024 · 0 comments
Open

ValueError: Retry again in a minute. #60

vardhannegi opened this issue Jun 16, 2024 · 0 comments

Comments

@vardhannegi
Copy link

vardhannegi commented Jun 16, 2024

Describe the bug
ValueError: Retry again in a minute.

To Reproduce
Steps to reproduce the behavior:

from nsedt import equity as eq
from datetime import date
import pandas as pd
from datetime import datetime,timedelta

start_date= datetime.today() - timedelta(365)
end_date= datetime.today()
print(start_date.date())
print(end_date.date())

finalDF=pd.DataFrame()

for i,sym in enumerate(eq.get_symbols_list()):
    try:
        tempDF=eq.get_price(start_date, end_date, symbol=sym)[['Date','Close Price']]
        if finalDF.shape[0]==0:
            finalDF=pd.concat([finalDF,tempDF],axis=0)
        else:
            finalDF=pd.merge(finalDF,tempDF,how='left',on='Date')
    except Exception as e:
        print(f'ERROR for {i,sym}: ',e)

Expected behavior
I was fetching one year data for all sym by for loop in a dataframe

Screen Short
image.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser : Firefox
  • Version : 22

Additional Information
NSE got my ip making too many request so I think they blocked my ip address
is there any way to fake Ip address also?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant