r/algotrading 2d ago

Data IBKR ib_async daily candles start at 12AM instead of Exchange Time

I have developed a strategy in TradingView using the 1day/4-hour timeframe.

I noticed that the daily candle in IBKR starts at 12:00 AM, whereas in TradingView, it starts at the exchange time — 6 PM CST.

Is there a way to adjust the candle start time in the settings? I know I can manually reconstruct 4-hour candles from 1-hour data in code, but I'm hoping there's a quicker or built-in solution.

Edit: After checking, even the opening price on the 1-hour timeframe is different? I'm subscribed to real-time futures data across all exchanges, and this is the result I’m seeing?

5 Upvotes

4 comments sorted by

4

u/yldf 2d ago

This here is what I hate about APIs. Why can’t just everything be in UTC and only in UTC? Instead, APIs insist on giving me eastern US time and nonsense like that…

1

u/eskimo0755 2d ago

After checking, even the opening price on the 1-hour timeframe is different? I'm subscribed to real-time futures data across all exchanges, and this is the result I’m seeing?

I'm sure I set the right contract since the current bid and ask is the same compared to trading view.

1

u/MrZwink Informed Trader 2d ago

Local time zone settings?

1

u/eskimo0755 2d ago

Tried it, it doesn't work unfortunately.