Yahoo Finance API Ticker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


=Keys=
=Keys=
==<tt>symbol</tt>==
==<tt>symbol</tt>, <tt>underlyingSymbol</tt>==
'FCOM'
'FCOM'
==<tt>longName</tt>==
==<tt>longName</tt>==
Line 51: Line 51:
  'regularMarketPreviousClose', '', 'regularMarketDayLow', 'regularMarketDayHigh', 'trailingPE',  'bid', 'ask', 'bidSize',   
  'regularMarketPreviousClose', '', 'regularMarketDayLow', 'regularMarketDayHigh', 'trailingPE',  'bid', 'ask', 'bidSize',   
  'askSize', 'yield', 'totalAssets',  'currency', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType',  
  'askSize', 'yield', 'totalAssets',  'currency', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType',  
   'quoteType', 'symbol', 'underlyingSymbol', 'shortName', 'longName', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])
   'quoteType', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])

Revision as of 06:31, 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, underlyingSymbol

'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

threeYearAverageReturn

fiveYearAverageReturn

Volume

volume, regularMarketVolume

averageVolume

averageVolume10days

averageDailyVolume10Day

Time Data

'longBusinessSummary', 'maxAge', 'priceHint', 
'regularMarketPreviousClose', , 'regularMarketDayLow', 'regularMarketDayHigh', 'trailingPE',  'bid', 'ask', 'bidSize',  
'askSize', 'yield', 'totalAssets',  'currency', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType', 
 'quoteType', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])