I am working with a market data feed that provides OHLC (Open, High, Low, Close) data for different intervals, such as I1 (1-minute) and I30 (30-minute) candles. However, I noticed that the timestamps in the feed represent the closing time of the interval rather than the start time.
For example:
- For a 1-minute interval (
I1), the timestamp corresponds to the end of the minute (e.g.,10:01:00for the interval10:00:00to10:00:59). - Similarly, for a 30-minute interval (
I30), the timestamp corresponds to the end of the 30-minute period (e.g.,10:30:00for the interval10:00:00to10:29:59).
My Questions:
- Is it standard practice for market data feeds to provide the closing time instead of the start time for interval timestamps? If so, why?
- Should I adjust these timestamps to represent the start time when storing the data in my database? (e.g., subtracting 1 minute for
I1or 30 minutes forI30intervals) - Are there any specific use cases where using the closing time as the timestamp is preferred over the start time?