Yahoo Finance API Ticker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
==<tt>exchange</tt>==
==<tt>exchange</tt>==
'PCX'
'PCX'
==Pricing Data==
'longBusinessSummary', 'maxAge', 'priceHint',
'regularMarketPreviousClose', 'regularMarketOpen', 'regularMarketDayLow', 'regularMarketDayHigh', 'trailingPE', 'volume', 'regularMarketVolume', 'averageVolume', 'averageVolume10days', 'averageDailyVolume10Day', 'bid', 'ask', 'bidSize', 
'askSize', 'yield', 'totalAssets', 'fiftyTwoWeekLow', 'fiftyTwoWeekHigh', 'fiftyDayAverage', 'twoHundredDayAverage', 'navPrice', 'currency', 'category', 'ytdReturn', 'beta3Year', 'fundFamily', 'fundInceptionDate', 'legalType', 'threeYearAverageReturn', 
'fiveYearAverageReturn', 'exchange', 'quoteType', 'symbol', 'underlyingSymbol', 'shortName', 'longName', 'firstTradeDateEpochUtc', 'timeZoneFullName', 'timeZoneShortName', 'uuid', 'messageBoardId', 'gmtOffSetMilliseconds', 'trailingPegRatio'])
===<tt>open</tt>===
===<tt>dayLow</tt>===
===<tt>dayHigh</tt>===
===<tt>previousClose</tt>===

Revision as of 06:14, 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'

exchange

'PCX'

Pricing Data

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


open

dayLow

dayHigh

previousClose