We are using v3 brokerage products
For getting 1m ohlc candles once next minute starts and see sometimes when running same code twice that we read not finished volume or close price which is different.
In exchange api there is this disclaimer
Historical rate data may be incomplete. No data is published for intervals where there are no ticks. Historical rates should not be polled frequently. If you need real-time information, use the trade and book endpoints along with the WebSocket feed.
What we are doing wrong that we read not valid data? We should wait sometime to ask about previous candle?
Thank you for helping