Using Python for Financial Data/Analyses

Ongoing Notes

Yahoo Finance one maintained an API.
However, this one is where it is at:

Basic use of yfinance:

from pandas_datareader import data as pdr
import yfinance as yf

The library is pretty deep. However, for most things, IMO, the “ticker” class is probably all you need.

aaplObj = yf.Ticker(“AAPL”)
# get dividends for 2018


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s