title: Yahoo Finance API returns yesterday's data until after market closes
body: <p>I've been using Yahoo Finance queries for a few years now, and over the past weeks (or few months) I noticed that each query I try no longer returns 15-minute delayed data. Instead, while the market is open, it returns the prior market day's data (e.g. query run right now returns Tuesday's closing data). This is, based on my experience, new behavior.</p>
  
  <p>For example, take this query:</p>
  
  <p><a href="https://query.yahooapis.com/v1/public/yql?q=SELECT%20*%20FROM%20yahoo.finance.quotes%20WHERE%20symbol=&#39;%5EGSPC&#39;&amp;diagnostics=false&amp;env=store://datatables.org/alltableswithkeys" rel="nofollow">Get quote for S&amp;P 500 Index</a></p>
  
  <p>When I ran it just a few minutes ago, the XML returned is:</p>
  
  <pre><code>&lt;query xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" yahoo:count="1" yahoo:created="2016-03-16T18:31:35Z" yahoo:lang="en-US"&gt;
  &lt;results&gt;
  &lt;quote symbol="^GSPC"&gt;
  &lt;Ask&gt;2017.27&lt;/Ask&gt;
  &lt;AverageDailyVolume/&gt;
  &lt;Bid&gt;2010.86&lt;/Bid&gt;
  &lt;AskRealtime/&gt;
  &lt;BidRealtime/&gt;
  &lt;BookValue&gt;0.00&lt;/BookValue&gt;
  &lt;Change_PercentChange&gt;-3.71 - -0.18%&lt;/Change_PercentChange&gt;
  &lt;Change&gt;-3.71&lt;/Change&gt;
  &lt;Commission/&gt;
  &lt;Currency&gt;USD&lt;/Currency&gt;
  &lt;ChangeRealtime/&gt;
  &lt;AfterHoursChangeRealtime/&gt;
  &lt;DividendShare/&gt;
  &lt;LastTradeDate&gt;3/15/2016&lt;/LastTradeDate&gt;
  &lt;TradeDate/&gt;
  &lt;EarningsShare/&gt;
  &lt;ErrorIndicationreturnedforsymbolchangedinvalid/&gt;
  &lt;EPSEstimateCurrentYear/&gt;
  &lt;EPSEstimateNextYear/&gt;
  &lt;EPSEstimateNextQuarter&gt;0.00&lt;/EPSEstimateNextQuarter&gt;
  &lt;DaysLow&gt;2005.23&lt;/DaysLow&gt;
  &lt;DaysHigh&gt;2015.94&lt;/DaysHigh&gt;
  &lt;YearLow&gt;1810.10&lt;/YearLow&gt;
  &lt;YearHigh&gt;2134.72&lt;/YearHigh&gt;
  &lt;HoldingsGainPercent/&gt;
  &lt;AnnualizedGain/&gt;
  &lt;HoldingsGain/&gt;
  &lt;HoldingsGainPercentRealtime/&gt;
  &lt;HoldingsGainRealtime/&gt;
  &lt;MoreInfo/&gt;
  &lt;OrderBookRealtime/&gt;
  &lt;MarketCapitalization/&gt;
  &lt;MarketCapRealtime/&gt;
  &lt;EBITDA/&gt;
  &lt;ChangeFromYearLow&gt;205.83&lt;/ChangeFromYearLow&gt;
  &lt;PercentChangeFromYearLow&gt;+11.37%&lt;/PercentChangeFromYearLow&gt;
  &lt;LastTradeRealtimeWithTime/&gt;
  &lt;ChangePercentRealtime/&gt;
  &lt;ChangeFromYearHigh&gt;-118.79&lt;/ChangeFromYearHigh&gt;
  &lt;PercebtChangeFromYearHigh&gt;-5.56%&lt;/PercebtChangeFromYearHigh&gt;
  &lt;LastTradeWithTime&gt;4:05pm - &lt;b&gt;2015.93&lt;/b&gt;&lt;/LastTradeWithTime&gt;
  &lt;LastTradePriceOnly&gt;2015.93&lt;/LastTradePriceOnly&gt;
  &lt;HighLimit/&gt;
  &lt;LowLimit/&gt;
  &lt;DaysRange&gt;2005.23 - 2015.94&lt;/DaysRange&gt;
  &lt;DaysRangeRealtime/&gt;
  &lt;FiftydayMovingAverage/&gt;
  &lt;TwoHundreddayMovingAverage/&gt;
  &lt;ChangeFromTwoHundreddayMovingAverage/&gt;
  &lt;PercentChangeFromTwoHundreddayMovingAverage/&gt;
  &lt;ChangeFromFiftydayMovingAverage/&gt;
  &lt;PercentChangeFromFiftydayMovingAverage/&gt;
  &lt;Name&gt;S&amp;P 500&lt;/Name&gt;
  &lt;Notes/&gt;
  &lt;Open&gt;2015.27&lt;/Open&gt;
  &lt;PreviousClose&gt;2019.64&lt;/PreviousClose&gt;
  &lt;PricePaid/&gt;
  &lt;ChangeinPercent&gt;-0.18%&lt;/ChangeinPercent&gt;
  &lt;PriceSales/&gt;
  &lt;PriceBook/&gt;
  &lt;ExDividendDate/&gt;
  &lt;PERatio/&gt;
  &lt;DividendPayDate/&gt;
  &lt;PERatioRealtime/&gt;
  &lt;PEGRatio&gt;0.00&lt;/PEGRatio&gt;
  &lt;PriceEPSEstimateCurrentYear/&gt;
  &lt;PriceEPSEstimateNextYear/&gt;
  &lt;Symbol&gt;^GSPC&lt;/Symbol&gt;
  &lt;SharesOwned/&gt;
  &lt;ShortRatio/&gt;
  &lt;LastTradeTime&gt;4:05pm&lt;/LastTradeTime&gt;
  &lt;TickerTrend/&gt;
  &lt;OneyrTargetPrice/&gt;
  &lt;Volume&gt;529043975&lt;/Volume&gt;
  &lt;HoldingsValue/&gt;
  &lt;HoldingsValueRealtime/&gt;
  &lt;YearRange&gt;1810.10 - 2134.72&lt;/YearRange&gt;
  &lt;DaysValueChange/&gt;
  &lt;DaysValueChangeRealtime/&gt;
  &lt;StockExchange&gt;SNP&lt;/StockExchange&gt;
  &lt;DividendYield/&gt;
  &lt;PercentChange&gt;-0.18%&lt;/PercentChange&gt;
  &lt;/quote&gt;
  &lt;/results&gt;
  &lt;/query&gt;
  &lt;!--  total: 16  --&gt;
  &lt;!--  main-30546b49-eb09-11e5-80e5-ac162da43cf5  --&gt;
  </code></pre>
  
  <p>Note the LastTradeTime value: 4:05pm
  Also LastTradeDate value: 3/15/2016</p>
  
  <p>This query was run today, March 16, 2016 at 11:31am PDT (note Yahoo timestamp from the XML header: yahoo:created="2016-03-16T18:31:35Z"). The volume, high, low, etc. all match yesterday's closing values. I see this for stocks, indices, ETF's, etc. Everything is old data until after the market closes.</p>
  
  <p>This was not the case in the past, and I can find no documentation talking about this. Anybody know what is up?</p>
  
  <p>Thanks!</p>