investpy icon indicating copy to clipboard operation
investpy copied to clipboard

error when calling get_currency_cross_information

Open trekco opened this issue 2 years ago • 1 comments

I need help with the following error.

get_currency_cross_information not working. looks like the div where class='overviewDataTable' does not exit anymore.

x = investpy.get_currency_cross_information(currency_cross='EUR/USD')

getting the error

RuntimeError("ERR#0004: data retrieval error while scraping.")

using investpy 1.0.8

thanks

trekco avatar Mar 12 '22 20:03 trekco

I don't think your using that correctly. have you tried data = investpy.get_currency_cross_historical_data(currency_cross='EUR/USD', from_date='01/01/2018', to_date='01/01/2019')

or

data = investpy.get_currency_cross_recent_data(currency_cross='EUR/USD')

Those are working just fine. If you going to use get_currency_cross_information I believe you have to call currency_crosses in before that.

bitcloudx avatar Mar 14 '22 02:03 bitcloudx