Python yfinance multiple tickers and write to file 多個查詢及寫入檔案

       
import yfinance as yf
data = yf.download("0001.hk 0002.hk 0003.hk", start="2021-02-01", end="2021-02-02")['Adj Close']
data.to_csv('test1.csv')

print(data.head())

留言

這個網誌中的熱門文章