yfinance-6.py
· 206 B · Python
原始檔案
import yfinance as yf
tickers = yf.Tickers('msft aapl goog')
# access each ticker using (example)
tickers.tickers['MSFT'].info
tickers.tickers['AAPL'].history(period="1mo")
tickers.tickers['GOOG'].actions
1 | import yfinance as yf |
2 | |
3 | tickers = yf.Tickers('msft aapl goog') |
4 | |
5 | # access each ticker using (example) |
6 | tickers.tickers['MSFT'].info |
7 | tickers.tickers['AAPL'].history(period="1mo") |
8 | tickers.tickers['GOOG'].actions |