Closed martinemilander closed 2 years ago
There appears to be a wrong ISIN for XOG. The correct one is US30227M3034. But it doesn't solve the problem by correcting in the "stocks.csv" file under resources.
Hi @martinemilander thanks for reporting this issue!
Regarding the static files of investpy
just to let you know that those are not too reliable, as those need to be updated on an e.g. monthly basis, but updating those is not as easy as it seems. This is why I'm planning to deprecate the static files from investpy
so that just the Investing.com search engine is used so as to ensure that the data is always up-to-date and aligned with the one available at Investing.com.
So on, the recommended way right now to download data from financial products is as it follows:
import investpy
search_result = investpy.search_quotes(text="XOG", countries=["United States"], products=["stocks"], n_results=1)
recent_data = search_result.retrieve_recent_data()
historical_data = search_result.retrieve_historical_data(from_date="01/01/2020", to_date="01/01/2021")
I hope this piece of code was useful to you! :hugs:
📌 More information on investpy.search_quotes
available at:
Hi
OHLCV data for XOG (United States) is not accurate. Closing price on 2021-Oct-20 was 65.00 USD but I get this when I download using this command:
investpy.get_stock_historical_data(stock='XOG', country='united states', from_date='01/01/1950', to_date='21/10/2021')