alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.62k stars 378 forks source link

inaccurate retrieval of data using symbols #159

Open ykloo opened 4 years ago

ykloo commented 4 years ago

hi i was searching for the etf VWRA :

vwra = investpy.search_etfs(by='symbol', value='vwra')

which produces:

0  united kingdom  Vanguard FTSE All-World UCITS USD Acc  ...         London              False

which is the same result as:

vwrp = investpy.search_etfs(by='symbol', value='vwrp')

even though they are in 2 different currencies.

as a result, if i were to try to get the historical data of vwra:

vwra_historical_data = investpy.etfs.get_etf_historical_data('Vanguard FTSE All-World UCITS USD Acc', 'united kingdom', '11/09/2019', '11/09/2020', interval='Weekly')

i would get the historical data of vwrp instead what can i do to obtain the correct historical data?

Thanks yk

alvarobartt commented 4 years ago

Hi @ykloo, thank you for reporting this issue! As already stated in either #147 or #154, an additional parameter will be included on data retrieval functions since some data is still inaccessible even though it is available in both investpy and Investing.com. So on, subscribe to any of those issues so as to keep a track on the addition of this optional parameter so that you can specify that you want to search the ETF data by symbol instead of the default search method (name).

Anyway, once solved, I will tell you how to use it in order to solve your issue.

Thank you! Remember to star the repo if you found it useful and follow me at GitHub so as to get notified of all the updates!

ykloo commented 4 years ago

Thank you for the hard work 😊