Yahoo Finance API Ticker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 27: Line 27:
'ETF'
'ETF'
==Pricing Data==
==Pricing Data==
===<tt>currentPrice</tt>, <tt>regularMarketPrice</tt>===
<font color=darkkhaki>Did not show up when the market as closed.</font>
===<tt>open</tt>, <tt>regularMarketOpen</tt>===
===<tt>open</tt>, <tt>regularMarketOpen</tt>===
===<tt>dayLow</tt>, <tt>regularMarketDayLow</tt>===
===<tt>dayLow</tt>, <tt>regularMarketDayLow</tt>===

Revision as of 07:00, 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

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