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

Example from the docs fails #620

Open
yurivict opened this issue Dec 25, 2022 · 0 comments
Open

Example from the docs fails #620

yurivict opened this issue Dec 25, 2022 · 0 comments

Comments

@yurivict
Copy link

This code:

import investpy

df = investpy.get_stock_historical_data(stock='AAPL',
                                        country='United States',
                                        from_date='01/01/2010',
                                        to_date='01/01/2020')
print(df.head())

fails:

Traceback (most recent call last):
  File "/usr/ports/finance/py-investpy/x.py", line 3, in <module>
    df = investpy.get_stock_historical_data(stock='AAPL',
  File "/usr/local/lib/python3.9/site-packages/investpy/stocks.py", line 664, in get_stock_historical_data
    raise ConnectionError(
ConnectionError: ERR#0015: error 403, try again later.
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