Yahoo Finance API Ticker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 11: | Line 11: | ||
=Keys= | =Keys= | ||
==<tt>symbol</tt>, <tt>underlyingSymbol</tt>== | ==General== | ||
===<tt>symbol</tt>, <tt>underlyingSymbol</tt>=== | |||
'FCOM' | 'FCOM' | ||
==<tt>longName</tt>== | ===<tt>longName</tt>=== | ||
'Fidelity MSCI Communication Services Index ETF' | 'Fidelity MSCI Communication Services Index ETF' | ||
==<tt>shortName</tt>== | ===<tt>shortName</tt>=== | ||
<font color=darkkhaki>31 characters?</font> | <font color=darkkhaki>31 characters?</font> | ||
===<tt>exchange</tt>=== | |||
==<tt>exchange</tt>== | |||
'PCX' | 'PCX' | ||
==<tt>category</tt>== | ===<tt>category</tt>=== | ||
The sector | The sector ('Communications') | ||
==<tt>currency</tt>== | ===<tt>currency</tt>=== | ||
'USD' | 'USD' | ||
===<tt> quoteType</tt>=== | |||
'ETF' | |||
==Pricing Data== | ==Pricing Data== | ||
===<tt>open</tt>, <tt>regularMarketOpen</tt>=== | ===<tt>open</tt>, <tt>regularMarketOpen</tt>=== | ||
Line 49: | Line 50: | ||
==Time Data== | ==Time Data== | ||
'longBusinessSummary', 'maxAge | 'longBusinessSummary', 'maxAge', | ||
'trailingPE', | 'trailingPE', | ||
'yield', 'totalAssets', 'currency', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType', | |||
' | '', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio']) | ||
==Others== | ==Others== |
Revision as of 06:36, 14 October 2023
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
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'])