This commit is contained in:
Dobromir Popov
2025-08-08 02:12:01 +03:00
parent b80e1c1eba
commit 6214bc2e9f
2 changed files with 7 additions and 6 deletions

View File

@ -9059,7 +9059,8 @@ class CleanTradingDashboard:
kline = data['k']
tick_record = {
'symbol': 'ETHUSDT',
'datetime': datetime.fromtimestamp(int(kline['t']) / 1000),
# Store as UTC-aware to avoid local/UTC mixing
'datetime': datetime.fromtimestamp(int(kline['t']) / 1000, tz=timezone.utc),
'open': float(kline['o']),
'high': float(kline['h']),
'low': float(kline['l']),