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

ERROR 403 when getting currency cross historical data #604

Open
hscho77 opened this issue Sep 19, 2022 · 8 comments
Open

ERROR 403 when getting currency cross historical data #604

hscho77 opened this issue Sep 19, 2022 · 8 comments

Comments

@hscho77
Copy link

hscho77 commented Sep 19, 2022

As I know, both get_stock_recent_data and get_stock_historical_data are fixed.
But "get_currency_cross_historical_data" has same issue still.

import investpy

yesterday = '19/07/2022'
today = '20/07/2022'

fx_df = investpy.get_currency_cross_historical_data(currency_cross='USD/KRW', from_date=yesterday, to_date=today)
print(fx_df)
  File "D:\Anaconda3\lib\site-packages\investpy\currency_crosses.py", line 674, in get_currency_cross_historical_data
    raise ConnectionError(
ConnectionError: ERR#0015: error 403, try again later.
@chanhw3
Copy link

chanhw3 commented Sep 19, 2022

Me 2, there is 403 error after running the sample code
import investpy
df = investpy.get_stock_historical_data(stock='AAPL',
country='United States',
from_date='01/01/2010',
to_date='01/01/2020')

#code below
line 665, in get_stock_historical_data
"ERR#0015: error " + str(req.status_code) + ", try again later."
ConnectionError: ERR#0015: error 403, try again later.

@vincentli2017
Copy link

This is a known issue, there is not a fix to it yet.

@arexms
Copy link

arexms commented Sep 19, 2022

Same issue.
Looks like investing.com changed something on their side.'
"Enable JavaScript and cookies to continue"

Response from investing.com (part of it)
<h2 class="h2" id="challenge-running"> Checking if the site connection is secure </h2> <noscript> <div id="challenge-error-title"> <div class="h2"> <span class="icon-wrapper"> <div class="heading-icon warning-icon"></div> </span> <span id="challenge-error-text"> Enable JavaScript and cookies to continue </span> </div> </div> </noscript>

@alvarobartt
Copy link
Owner

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! 🤗

@iazkarategi
Copy link

Have you any new? Thanks a lot

@alvarobartt
Copy link
Owner

alvarobartt commented Sep 27, 2022

Not yet @iazkarategi, I'll let you know whenever they answer me, but let's put too much faith in it, as investpy is not an official Investing.com product...

@PrinceMalaba
Copy link

Not yet @iazkarategi, I'll let you know whenever they answer me, but let's put too much faith in it, as investpy is not an official Investing.com product...

Any Luck on solution to 403 error?

@alvarobartt
Copy link
Owner

Yes @PrinceMalaba I found a solution that I've developed in investiny usage is limited, but it works fine. And, I've just released investiny v0.3.0 with search_assets function to mimic investpy.search_quotes function which is not working here either.

💫 So please everyone go install investiny, star it to show me some support, provide me feedback, open issues, etc.

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

7 participants