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

Added support for etf extraction by symbol #427

Closed
wants to merge 4 commits into from
Closed

Added support for etf extraction by symbol #427

wants to merge 4 commits into from

Conversation

ehcalabres
Copy link

Added support for etf extraction by symbol

As requested on this issue #425, a new feature has been added to the etf information extraction functionalty. Now it's possible to obtain the desired information by either indicating the etf name or symbol.

In order to differentiate wether it is the symbol or the name, a new is_symbol parameter has been added to the functions of etf extraction such get_etf_recent_data(), get_etf_historical_data() and get_etf_information().

As result, the way you can extract the information with name remains unchanged:

import investpy

# Getting etf information by name
data = investpy.get_etf_recent_data('bbva accion dj eurostoxx 50', 'spain')

But if you want to retrieve the information by symbol the resulting method should look like this:

import investpy

# Getting etf information by symbol
data = investpy.get_etf_recent_data('bbvae', 'spain', is_symbol=True)

Note that the is_symbol parameter is optional and its default value is set to False in order to maintain how the previous were used.

All tests for this new functionality has been added to the tests scripts and has been passed without errors.

@ehcalabres ehcalabres linked an issue Jul 16, 2021 that may be closed by this pull request
@eyalk11
Copy link

eyalk11 commented Oct 12, 2021

Ah, yeh , maybe #453 overlaps.

@ehcalabres ehcalabres closed this by deleting the head repository Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Searching etf by symbol
2 participants