obv 문제

This commit is contained in:
Macbook
2026-06-09 01:32:27 +09:00
parent 969b2fa6ad
commit 8670e58c78
4 changed files with 115 additions and 4 deletions
@@ -11,7 +11,9 @@ import type {
} from '../../types';
import { isUpbitMarket } from '../../utils/upbitApi';
import { useChartRealtimeData } from '../../hooks/useChartRealtimeData';
import type { ChartRealtimeSource } from '../../hooks/useChartRealtimeData';
import { useHistoryLoader } from '../../hooks/useHistoryLoader';
import { useAppSettings } from '../../hooks/useAppSettings';
import type { ChartManager } from '../../utils/ChartManager';
import { pinCandleWatch } from '../../utils/backendApi';
import { timeframeToCandleType } from '../../utils/chartCandleType';
@@ -51,6 +53,8 @@ const TradeSignalMiniChart: React.FC<Props> = ({
signalMarker,
}) => {
const { getParams, getVisualConfig } = useIndicatorSettings();
const { defaults: appDefaults } = useAppSettings();
const chartRealtimeSource = (appDefaults.chartRealtimeSource ?? 'BACKEND_STOMP') as ChartRealtimeSource;
const managerRef = useRef<ChartManager | null>(null);
const canvasWrapRef = useRef<HTMLDivElement | null>(null);
const [chartReloadTick, setChartReloadTick] = useState(0);
@@ -147,9 +151,9 @@ const TradeSignalMiniChart: React.FC<Props> = ({
onTickUpdate: handleTickUpdate,
onNewCandle: handleNewCandle,
enabled: enabled && useUpbit,
source: 'BACKEND_STOMP' as const,
source: chartRealtimeSource,
deepObvHistory: needsDeepObv,
}), [handleTickUpdate, handleNewCandle, enabled, useUpbit, needsDeepObv]),
}), [handleTickUpdate, handleNewCandle, enabled, useUpbit, needsDeepObv, chartRealtimeSource]),
);
const { isLoadingMore } = useHistoryLoader({