Yahoo Finance API Ticker

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Returns the current day data, but not the "close"

yf.Ticker('AAPL').history(period='1d')['Close'].iloc[0]

Keys

symbol

'FCOM'

exchange

'PCX'

category

The sector.

Pricing Data

open

dayLow

dayHigh

previousClose

navPrice

Pricing Stats

fiftyDayAverage

twoHundredDayAverage

fiftyTwoWeekLow

fiftyTwoWeekHigh

Return Stats

ytdReturn

Time Data

'longBusinessSummary', 'maxAge', 'priceHint', 
'regularMarketPreviousClose', 'regularMarketOpen', 'regularMarketDayLow', 'regularMarketDayHigh', 'trailingPE', 'volume', 'regularMarketVolume', 'averageVolume', 'averageVolume10days', 'averageDailyVolume10Day', 'bid', 'ask', 'bidSize',  
'askSize', 'yield', 'totalAssets',  , , , 'currency', 'category', , 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType', 'threeYearAverageReturn',  
'fiveYearAverageReturn', 
 'quoteType', 'symbol', 'underlyingSymbol', 'shortName', 'longName', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])