'Investpy module
My code:
import investpy
print(investpy.__version__)
df = investpy.get_stock_historical_data(stock='AAPL',
country='United States',
from_date='01/01/2010',
to_date='01/01/2020')
print(df.head())
Output:
1.0.8
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3312.0_x64__qbz5n2kfra8p0\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 4, in <module>
File "C:\Users\90551\Desktop\pythonProject\lib\site-packages\investpy\stocks.py", line 664, in get_stock_historical_data
raise ConnectionError(
ConnectionError: ERR#0015: error 503, try again later.
I dont understand eror. I searched but couldn't find a solution.I would be grateful if you could help
Solution 1:[1]
It usually simply means that the service you are trying to access is currently down. If you wait some time – as the message suggests – and then try again, it should work. (Might take minutes, hours, or even days, depending on the issue.)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | myke |