매매 시그널 알림 화면 수정
This commit is contained in:
@@ -25,6 +25,8 @@ interface Props {
|
||||
enabled?: boolean;
|
||||
/** 전체보기 모드 — 부모 높이에 맞춤 */
|
||||
fillHeight?: boolean;
|
||||
/** STOMP/WS 실시간 봉 수신 시 (목록 행 형광 플래시 등) */
|
||||
onRealtimeActivity?: () => void;
|
||||
}
|
||||
|
||||
const noop = () => {};
|
||||
@@ -36,6 +38,7 @@ const TradeSignalMiniChart: React.FC<Props> = ({
|
||||
indicators = [],
|
||||
enabled = true,
|
||||
fillHeight = false,
|
||||
onRealtimeActivity,
|
||||
}) => {
|
||||
const managerRef = useRef<ChartManager | null>(null);
|
||||
const canvasWrapRef = useRef<HTMLDivElement | null>(null);
|
||||
@@ -70,11 +73,13 @@ const TradeSignalMiniChart: React.FC<Props> = ({
|
||||
|
||||
const handleTickUpdate = useCallback((bar: OHLCVBar) => {
|
||||
applyRealtimeBar(bar, false);
|
||||
}, [applyRealtimeBar]);
|
||||
onRealtimeActivity?.();
|
||||
}, [applyRealtimeBar, onRealtimeActivity]);
|
||||
|
||||
const handleNewCandle = useCallback((bar: OHLCVBar) => {
|
||||
applyRealtimeBar(bar, true);
|
||||
}, [applyRealtimeBar]);
|
||||
onRealtimeActivity?.();
|
||||
}, [applyRealtimeBar, onRealtimeActivity]);
|
||||
|
||||
const useUpbit = isUpbitMarket(market);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user