alvarobartt / investpy

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

Feature request: add underlying index to get_etfs_dict() #267

Open MrDrinkwater opened 3 years ago

MrDrinkwater commented 3 years ago

Hi Alvaro,

I just found Investpy and I think it's the best python module around for scraping financial data. My investment style is mostly focused on ETFs and since there are so many of them I want to try to do some data analysis to design my "ideal" portfolio. I am new to quantitative finance, but I have some skills in coding and statistics I'd like to use for something useful ;)

However... starting to play with your amazing module i noticed that the function index to get_etfs_dict() does not contain the underlying index tracked by the ETF. I think It would be an useful information to have in order to assess the performance of any ETF. Looks like an easy task but I have no idea of the real effort to implement it.

Thanks in advance,

Ivan

alvarobartt commented 3 years ago

Hi @MrDrinkwater thanks for your kind words towards the project! 🤗

Could you please give me more details even though it does not have to be technical at all, just give me more details of what you are trying to do but currently cannot with investpy and I'll try to help you as much as I can!

MrDrinkwater commented 3 years ago

Dear Alvaro,

What I am suggesting is to add the underlying index of an ETF to the results of the function get_etfs_dict(). For instance, as shown in the picture below, the underlying index for the Etf with isin IE00B78JSG98 is the MSCI USA Quality NR USD. ( I also noticed that some ETFs seem to not have an underlying index, like isin: CA85220Q1072)

I may be wrong, but from what i've done so far this information is not obtainable using get_etfs_dict() or other investpy commands.

image

I hope this may help to further improve investpy,

have a nice day,

Ivan

Il giorno dom 31 gen 2021 alle ore 13:45 Álvaro Bartolomé < notifications@github.com> ha scritto:

Hi @MrDrinkwater https://github.com/MrDrinkwater thanks for your kind words towards the project! 🤗

Could you please give me more details even though it does not have to be technical at all, just give me more details of what you are trying to do but currently cannot with investpy and I'll try to help you as much as I can!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alvarobartt/investpy/issues/267#issuecomment-770376957, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE33DV7CNOB3CEMPGYMU3SLS4VGHPANCNFSM4V77HMUA .

--

JuCarm commented 3 years ago

I would also appreciate this feature, if it is possible. It would be nice to be able to list all ETFs on investing.com that have a given underlying index, in order to compare them.

alvarobartt commented 3 years ago

Hi @MrDrinkwater and @JuCarm! I'll implement this later today and will let you know whenever the new bug fix release comes out, it should be investpy v1.0.2 as investpy v1.0.1 was released some days ago!

Could you please share the image again @MrDrinkwater? As I think that you need to paste it through the GitHub comment, not through the email, as it is not showing 😩

Thank you both for the support!

MrDrinkwater commented 3 years ago

Image added!

Thank you again for your awesome work

alvarobartt commented 3 years ago

Cool! Thanks @MrDrinkwater I'll update the investpy.get_etfs_dict() function later!

Thank you also for your kind words towards investpy! 🔥

alvarobartt commented 3 years ago

Ok @MrDrinkwater and @JuCarm so this issue is related with investpy's missing data, I'll try to re-generate the etfs.csv including the field you are looking for just as done for Funds and Certificates 👍🏻 This may take some more days, but for sure this will be ready for v1.0.3 in the bestcase scenario.

Thank you for reporting it! Remember to star the repo, follow me here and on Twitter at https://twitter.com/alvarobartt so as to get notified from all the updates and projects I'm working on! ⭐