Yahoo Finance API Ticker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
'Fidelity MSCI Communication Services Index ETF'
'Fidelity MSCI Communication Services Index ETF'
==<tt>shortName</tt>==
==<tt>shortName</tt>==
<font color=darkkhaki>31 characters?</font>


==<tt>exchange</tt>==
==<tt>exchange</tt>==

Revision as of 06:26, 14 October 2023

Internal

Overview

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

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

Keys

symbol

'FCOM'

longName

'Fidelity MSCI Communication Services Index ETF'

shortName

31 characters?

exchange

'PCX'

category

The sector.

Pricing Data

open, regularMarketOpen

dayLow

dayHigh

previousClose, regularMarketPreviousClose

navPrice

Pricing Stats

fiftyDayAverage

twoHundredDayAverage

fiftyTwoWeekLow

fiftyTwoWeekHigh

Return Stats

ytdReturn

Time Data

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