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()