Yahoo finance API Quotes wrong date randomly - between today and yesterday days ago
Asked Answered
C

0

4

I am using the yahoo finance API to get the price quotes from the market that has closed. I usually run the API at about 11pm at night (USA time). The API will return today's market data some times and yesterdays market data sometimes. It seems to be random and if you run it a few times in a row you can see it randomly switching between these dates. How can I get it to consistently return the latest quotes and not yesterday's quotes?

Cushitic answered 27/8, 2016 at 3:51 Comment(1)
Just got started with their API and detected the same problem, once every dozen requests or so it answers with a quote from nearly a year ago. I suppose checking the regularMarketTime field helps.Jeraldjeraldine

© 2022 - 2024 — McMap. All rights reserved.