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

inaccurate retrieval of data using symbols #159

Open
ykloo opened this issue May 13, 2020 · 2 comments
Open

inaccurate retrieval of data using symbols #159

ykloo opened this issue May 13, 2020 · 2 comments
Assignees
Labels
improvement Something needs to be improved question Further information is requested

Comments

@ykloo
Copy link

ykloo commented May 13, 2020

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 alvarobartt self-assigned this May 13, 2020
@alvarobartt alvarobartt added improvement Something needs to be improved question Further information is requested labels May 13, 2020
@alvarobartt
Copy link
Owner

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
Copy link
Author

ykloo commented May 13, 2020

Thank you for the hard work 😊

@ykloo ykloo closed this as completed May 13, 2020
@ykloo ykloo reopened this May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needs to be improved question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants