yfinance 분석

import yfinance as yf
 
 

yfinance가 잘 설치 되었다.

The Ticker module, which allows you to access ticker data in a more Pythonic way:

 

import yfinance as yf

msft = yf.Ticker("MSFT")

# get stock info
msft.info

# get historical market data
hist = msft.history(period="max")

# show actions (dividends, splits)
msft.actions

# show dividends
msft.dividends

# show splits
msft.splits

# show financials
msft.financials
msft.quarterly_financials

# show major holders
msft.major_holders

# show institutional holders
msft.institutional_holders

# show balance sheet
msft.balance_sheet
msft.quarterly_balance_sheet

# show cashflow
msft.cashflow
msft.quarterly_cashflow

# show earnings
msft.earnings
msft.quarterly_earnings

# show sustainability
msft.sustainability

# show analysts recommendations
msft.recommendations

# show next event (earnings, etc)
msft.calendar

# show all earnings dates
msft.earnings_dates

# show ISIN code - *experimental*
# ISIN = International Securities Identification Number
msft.isin

# show options expirations
msft.options

# show news
msft.news

# get option chain for specific expiration
opt = msft.option_chain('YYYY-MM-DD')
# data available via: opt.calls, opt.puts

 

'기술' 카테고리의 다른 글

DART openAPI 이용 금융데이타 분석  (0) 2022.11.07
data를 표로 만들기  (0) 2022.11.07
Pandas (11/6)  (0) 2022.11.06
RealtimeDatabase 정보확인  (0) 2022.11.05
외부DB 저장경로 생성 문제  (0) 2022.11.04