Jun-14-2023, 12:37 PM
(This post was last modified: Jun-14-2023, 12:37 PM by deanhystad.)
In the first example you don't use tkr (a yf.Ticker object). In the second you pass a yf.Ticker object to yf.download(). yf.download() expects tickers to be strings, not yf.Ticker objects.
I looked at your other threads. This is the first time yf.Ticker makes an appearance. This is all on you. It is not a fault of the modules or the GUI you are using. This is a sloppy programming, lack of attention to detail error. We've all had those and had to learn to have "fresh eyes" when reading code. You need to read the actual code instead of the code you expect to see. You should have seen that yf.Ticker does not appear in the moderator's script and that would make you research what yf.Ticker is, and what arguments are expected by yf.download. From that you would know that yf.Ticker is not the correct type for ticker arguments passed to yf.download.
I looked at your other threads. This is the first time yf.Ticker makes an appearance. This is all on you. It is not a fault of the modules or the GUI you are using. This is a sloppy programming, lack of attention to detail error. We've all had those and had to learn to have "fresh eyes" when reading code. You need to read the actual code instead of the code you expect to see. You should have seen that yf.Ticker does not appear in the moderator's script and that would make you research what yf.Ticker is, and what arguments are expected by yf.download. From that you would know that yf.Ticker is not the correct type for ticker arguments passed to yf.download.