You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use investpy to retrieve the fund price as in the code below.
I experience error as earlier mentioned in the subject. ERR#0015: error 429, try again later.
How to tackle this problem?
How many requests to retrieve data a day ( 1 fund / 1 request)?
`
import investpy
import datetime
import pandas as pd
path=r'D:\AB_DB\AB_Fund_World_Files'
#fund_name='Polar Capital Funds Plc - Polar Capital Global Technology Fund I Income'
today_str=datetime.date.today().strftime('%d/%m/%Y')
print(today_str)
fund_name='Tmb China Opportunity Retirement Mutual Fund'
country_name='thailand'
#Ireland Luxembourg united Kingdo
try:
df = investpy.get_fund_historical_data(fund=fund_name,
country=country_name,
from_date='20/03/2022',
to_date=today_str)
print(df.head())
except Exception as ex:
print(ex)
#df.to_csv(f'{path}\{fund_name}.csv',index=True)
The figure below shows actual script that I use to retrieve fund ata
There are around 50 funds on a daily basis
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I use investpy to retrieve the fund price as in the code below.
I experience error as earlier mentioned in the subject.
ERR#0015: error 429, try again later.
`
import investpy
import datetime
import pandas as pd
path=r'D:\AB_DB\AB_Fund_World_Files'
#fund_name='Polar Capital Funds Plc - Polar Capital Global Technology Fund I Income'
today_str=datetime.date.today().strftime('%d/%m/%Y')
print(today_str)
fund_name='Tmb China Opportunity Retirement Mutual Fund'
country_name='thailand'
#Ireland Luxembourg united Kingdo
try:
df = investpy.get_fund_historical_data(fund=fund_name,
country=country_name,
from_date='20/03/2022',
to_date=today_str)
print(df.head())
except Exception as ex:
print(ex)
#df.to_csv(f'{path}\{fund_name}.csv',index=True)
The figure below shows actual script that I use to retrieve fund ata
There are around 50 funds on a daily basis
`
Beta Was this translation helpful? Give feedback.
All reactions