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

Retrieve more ETF data #422

Open
pieterjandotpy opened this issue Aug 14, 2020 · 2 comments
Open

Retrieve more ETF data #422

pieterjandotpy opened this issue Aug 14, 2020 · 2 comments

Comments

@pieterjandotpy
Copy link

I would like to retrieve more data from ETFs, in specific the sector weightings (%) of a specific ETF, found in the tab Holdings on the Yahoo website: https://finance.yahoo.com/quote/IWDA.AS/holdings?p=IWDA.AS

Is this possible in the current API?
If not, does someone know how I could add this to the API? I'm guessing it would be in base.py, but I'm not sure where. All help is welcome!

@yoshrubin
Copy link

yea would be cool to get more info regarding ETFs regarding the holdings etc...

@idanre1
Copy link

idanre1 commented Sep 8, 2022

I think only documentation is needed.
For example to get bond ratings you should do the following:

gsy = yf.Ticker("GSY")
info = gsy.get_info()
print(info['bondRatings'])

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

No branches or pull requests

3 participants