From c96e2223ee29a87385fcdd8c5af8fb82b06fd4ef Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Tue, 1 Apr 2025 15:11:08 +0300 Subject: [PATCH] perfect sticks again - lost historical timeframes --- realtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/realtime.py b/realtime.py index a9cc3d5..25b2e4e 100644 --- a/realtime.py +++ b/realtime.py @@ -1860,7 +1860,8 @@ class RealTimeChart: tick_count += 1 # Also update the old candlestick data for backward compatibility - self.candlestick_data.update_from_trade(trade_data) + if hasattr(self, 'candlestick_data'): + self.candlestick_data.update_from_trade(trade_data) # Log tick counts periodically current_time = time.time()