After the equity markets close, you may notice a difference between daily closing prices (1 day to 1 month) and intraday prices (1 minute to 8 hours). This is particularly common with the most volatile instruments.
Example
Consider the case of AAPL when requesting minute data.
Minutely data request
https://api.twelvedata.com/time_series?symbol=AAPL&interval=1min&date=2022-06-27&apikey=YOUR_API_KEY
This returns a closing price of 141.71001 for the end of the day. However, the closing price at a daily interval is slightly different.
Daily data request
https://api.twelvedata.com/time_series?symbol=AAPL&interval=1day&date=2022-06-27&apikey=YOUR_API_KEY
This returns a closing price of 141.66000. The latest price corresponds to the official end-of-day (EOD) closing value, updated shortly after the market closes. This value is consistent with what you see on other financial websites and services.
Why does it happen?
Intraday data candles are composed of tick-level data. When the market closes, we consider the last tick to be the closing price. However, the exchange keeps the right to choose a different price as the official end-of-day close. The official values after the announcement are updated at daily+ intervals, while the intraday values remain the same as they were.