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?