79502259

Date: 2025-03-11 22:29:28
Score: 2.5
Natty:
Report link

Thank you for answering. After my new investigations, I found that the code works in Google-Colab but not in Jupyter or in a terminal.
I depreciated and matched all versions used in my code on my computer to match all yfinance libs in Colab.

Still the error on my MAC and works in Colob:

yfinance.Tickers object <MSFT>
<class 'yfinance.tickers.Tickers'>
YF.download() has changed argument auto_adjust default to True
Traceback (most recent call last):
  File "/Users/svenbode/anaconda3/envs/YF/Code/Algorithmic_Trading_v1.1_08.03.2025.py", line 29, in <module>
    df = yf.download(tickers=tickers, start=start_date, end=end_date)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/svenbode/anaconda3/envs/YF/lib/python3.11/site-packages/yfinance/utils.py", line 104, in wrapper
    result = func(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/svenbode/anaconda3/envs/YF/lib/python3.11/site-packages/yfinance/multi.py", line 127, in download
    for ticker in tickers:
TypeError: 'Tickers' object is not iterable

Anyone an idea?

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Esrly Bird