ConnectionError: ERR#0015: error 403, try again later.

See original GitHub issue

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

Error-

ConnectionError                           Traceback (most recent call last)
[<ipython-input-4-f6f4235b7e47>](https://localhost:8080/#) in <module>
      4                                         country='United States',
      5                                         from_date='01/01/2010',
----> 6                                         to_date='01/01/2020')
      7 print(df.head())

[/usr/local/lib/python3.7/dist-packages/investpy/stocks.py](https://localhost:8080/#) in get_stock_historical_data(stock, country, from_date, to_date, as_json, order, interval)
    663         if req.status_code != 200:
    664             raise ConnectionError(
--> 665                 "ERR#0015: error " + str(req.status_code) + ", try again later."
    666             )
    667 

ConnectionError: ERR#0015: error 403, try again later.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:7
  • Comments:106 (27 by maintainers)

github_iconTop GitHub Comments

31reactions
alvarobarttcommented, Sep 16, 2022

Hi everyone! I’ve checked this issue and it seems that the internal API that Investing.com uses has changed without prior notice, as this is not an official implementation. Sorry for the inconvenience, this issue will be solved in the upcoming days, hopefully, today I’ll push a patch to solve this, I’ll share later on with you the branch where I’m working actively to solve this!

20reactions
alvarobarttcommented, Sep 26, 2022

So I’ve already contacted Investing.com and started a conversation there, I’ll let you all know the outcome of it. Thanks for your patience! 🤗

Read more comments on GitHub >

github_iconTop Results From Across the Web

investpy error while running for loop: ConnectionError: ERR ...
text) ConnectionError: ERR#0015: error 406, try again later. It used to get executed without any error but now I am experiencing above error...
Read more >
investpy 1.0.8 - PythonFix.com
ERR #0015: error 503, try again later. AVST, M&G cannot be found in FTSE100; investpy.get_crypto_historical_data Not working with several Cryptos ...
Read more >
investpy - PyPI
investpy is a Python package to retrieve data from Investing.com, which provides data retrieval from up to 39952 stocks, 82221 funds, 11403 ETFs,...
Read more >
investpy Documentation - Read the Docs
ConnectionError – raised if the connection to Investing.com errored (did not return. HTTP 200) investpy.stocks.get_stock_recent_data(stock, ...
Read more >
investpy - Bountysource
ConnectionError : ERR#0015: error 403, try again later. $ 0 ... I am trying to use investpy to obtain news in my channel....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found