The 17:00 candle turned up twice. So did the one at 17:05. I was joining two six-hour slices of the same HYPEUSDT market-data file, and both slices included their endpoints.

The first slice starts at noon and ends at 18:00 Hong Kong time. The second starts at 17:00 and ends at 23:00. There are twelve five-minute steps from 17:00 to 18:00, but thirteen timestamps if you count both ends. That accounts for all 13 extra rows when you append the batches.

Here’s the whole check. Download the five-minute futures archive for November 14 and run the following Python code with pandas in the same directory as the ZIP.

import pandas as pd archive = "HYPEUSDT-5m-2026-11-14.zip" fields = ["open", "high", "low", "close", "volume"] bars = pd.read_csv(archive, usecols=["open_time", *fields]) bars.index = pd.to_datetime(bars.pop("open_time"), unit="ms", utc=True) bars.index = bars.index.tz_convert("Asia/Hong_Kong") day = "2026-11-14 " original = bars.loc[day + "12:00":day + "23:00"] a = original.loc[:day + "18:00"] b = original.loc[day + "17:00":] shared = a.index.intersection(b.index) pd.testing.assert_frame_equal(a.loc[shared], b.loc[shared], check_exact=True) joined = pd.concat([a, b]) recovered = joined.loc[~joined.index.duplicated(keep="first")] pd.testing.assert_frame_equal(recovered, original, check_exact=True) print(len(a), len(b), len(joined), len(shared), len(recovered)) 

Output: 73 73 146 13 133. The last assertion compares the prices, volume and row order with the original window.

In this experiment both batches came from one file, so the overlapping values should match. With two independently collected batches, I’d keep the first assertion before dropping anything. If the closing prices at 17:00 disagree, keeping the first row would quietly discard that difference. For a feed with several instruments or intervals, the key needs the symbol and interval as well as the opening timestamp.

AI disclosure: This article was drafted with AI assistance. The example was run against the linked archive.