Yahoo Finance API Ticker: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:
=Overview=
=Overview=


<font color=darkkhaki>Seems to be returning the pervious day data, not the current data. Current data can be obtained with:</font>
Returns the current day data, but not the "close"


<syntaxhighlight lang='py'>
<syntaxhighlight lang='py'>

Revision as of 06:05, 14 October 2023

Internal

Overview

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

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

Keys