Yahoo Finance API Ticker

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

Ticker info returns the current day data, except the closing price, even after the market closed and the price should have been available. To get the closing price, use either Ticker.history() or download().

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

currentPrice, regularMarketPrice

Did not show up when the market as closed.

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

timeZoneFullName

timeZoneShortName

gmtOffSetMilliseconds

Others

priceHint

bid

bidSize

ask

askSize

longBusinessSummary

maxAge

trailingPE

messageBoardId

fundFamily

fundInceptionDate

yield

totalAssets

currency

beta3Year

legalType

firstTradeDateEpochUtc

trailingPegRatio