You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
First of all thank you for this amazing library 👍
For some ETFs especial Bond based ETFs fund_sector_weightings is throwing an exception.
Even when there are multiple symbols in the ticker and just one of them makes trouble (is a Bond based ETF) an exception is thrown.
To Reproduce
fromyahooqueryimportTickerimportyahooqueryprint(yahooquery.__version__)
# > 2.3.7ticker=Ticker(["IBDX"])
ticker.fund_sector_weightings# > KeyError: 'None of [0] are in the columns'# OR ticker=Ticker(["IBDX", "SPY"])
ticker.fund_sector_weightings# > KeyError: 'None of [0] are in the columns'
Describe the bug
First of all thank you for this amazing library 👍
For some ETFs especial Bond based ETFs fund_sector_weightings is throwing an exception.
Even when there are multiple symbols in the ticker and just one of them makes trouble (is a Bond based ETF) an exception is thrown.
To Reproduce
Expected behavior
No exception. E.g.
The text was updated successfully, but these errors were encountered: