fixed TZ
This commit is contained in:
@ -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']),
|
||||
|
Reference in New Issue
Block a user