Yahoo Finance API Ticker

From NovaOrdis Knowledge Base
Revision as of 06:36, 14 October 2023 by Ovidiu (talk | contribs)
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

General

symbol, underlyingSymbol

'FCOM'

longName

'Fidelity MSCI Communication Services Index ETF'

shortName

31 characters?

exchange

'PCX'

category

The sector ('Communications')

currency

'USD'

quoteType

'ETF'

Pricing Data

open, regularMarketOpen

dayLow, regularMarketDayLow

dayHigh, regularMarketDayHigh

previousClose, regularMarketPreviousClose

navPrice

Pricing Stats

fiftyDayAverage

twoHundredDayAverage

fiftyTwoWeekLow

fiftyTwoWeekHigh

Return Stats

ytdReturn

threeYearAverageReturn

fiveYearAverageReturn

Volume

volume, regularMarketVolume

averageVolume

averageVolume10days

averageDailyVolume10Day

Time Data

'longBusinessSummary', 'maxAge',
'trailingPE',
'yield', 'totalAssets',  'currency', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType', 
 , 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])

Others

priceHint

bid

bidSize

ask

askSize