chart data fixes

This commit is contained in:
2026-04-01 03:09:54 -04:00
parent 9e6a20c218
commit ca44e68f64
7 changed files with 102 additions and 16 deletions

View File

@@ -16,7 +16,6 @@ import {
type SnapshotMessage,
type PatchMessage,
} from '../workspace/index.js';
import { resolutionToSeconds } from '../types/ohlc.js';
/**
* Safe JSON stringifier that handles BigInt values
@@ -487,7 +486,7 @@ export class WebSocketHandler {
}
const history = await ohlcService.fetchOHLC(
payload.symbol,
resolutionToSeconds(payload.resolution),
payload.period_seconds,
payload.from_time,
payload.to_time,
payload.countback