Once the equity markets are closed, you may encounter the difference between daily (1day - 1month) closing prices and intraday (1min-8h). This tends to happen with the most volatile instruments.
Example
Take an example of AAPL when requesting minutely data.
https://api.twelvedata.com/time_series?symbol=AAPL&interval=1min&date=2022-06-27&apikey=YOUR_API_KEY
Returns close price of 141.71001
for the end of the day.
The exact date at a daily interval has a different value.
https://api.twelvedata.com/time_series?symbol=AAPL&interval=1day&date=2022-06-27&apikey=YOUR_API_KEY
Returns close price of 141.66000
. The latest price corresponds to the official EOD closing value, which gets updates within 15 minutes after market closing. This value is identical to what can be seen on other websites and services.
Why does it happen?
Intraday data candles are composed of the 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 with the daily intervals, while intraday remains original as they were.