Tickers#

class yfinance.Tickers(tickers, session=None)#

Attributes

calendar

Returns a DataFrame of events, earnings, and dividends, one row per ticker

info

Methods

__init__(tickers, session=None)
download(period='1mo if start & end None', interval='1d', start=None, end=None, prepost=False, actions=True, auto_adjust=True, repair=False, threads=True, group_by='column', progress=True, timeout=10, **kwargs)
get_calendar(threads=True, progress=False) → DataFrame

Returns a DataFrame indexed by ticker. A ticker without calendar or that failed to fetch is a row of NaN. Parameters are the same as get_info().

get_info(threads=True, progress=False) → dict

Returns a dictionary symbol -> info dictionary. A ticker that failed to fetch maps to an empty dictionary.

Parameters:
threads: bool / int

How many tickers to fetch in parallel. Default is True (up to 4). Requests stop once Yahoo rate-limits; calling again later only fetches the tickers still missing.

progress: bool

Show progress bar. Default is False

history(period='1mo if start & end None', interval='1d', start=None, end=None, prepost=False, actions=True, auto_adjust=True, repair=False, threads=True, group_by='column', progress=True, timeout=10, **kwargs)
live(message_handler=None, verbose=True)
news()
get_calendar(threads=True, progress=False) → DataFrame#

Returns a DataFrame indexed by ticker. A ticker without calendar or that failed to fetch is a row of NaN. Parameters are the same as get_info().

get_info(threads=True, progress=False) → dict#

Returns a dictionary symbol -> info dictionary. A ticker that failed to fetch maps to an empty dictionary.

Parameters:
threads: bool / int

How many tickers to fetch in parallel. Default is True (up to 4). Requests stop once Yahoo rate-limits; calling again later only fetches the tickers still missing.

progress: bool

Show progress bar. Default is False