Skip to content

How to obtain ETF data? #399

Answered by alvarobartt
yuselg asked this question in Q&A
Jun 14, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @yuselg this is weird... 😖 I'll have a look at it later today so as to provide you a more detailed answer as that functions should work as long as the data is available in the static CSV files of investpy, but anyway, just as a fix/workaround you can use investpy.search_quotes function which uses the Investing.com search engine 👍

Here's a usage example:

import investpy
search_result = investpy.search_quotes(text='VIG', products=['etfs'], countries=['united states'], n_results=1)
print(search_result)

recent_data = search_result.retrieve_recent_data()
historical_data = search_result.retrieve_historical_data(from_date='01/01/2019', to_date='01/01/2020')
information = search_result.retrie…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yuselg
Comment options

@cla-azzarello
Comment options

Answer selected by alvarobartt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants