주가 표시형식 수정

This commit is contained in:
Macbook
2026-06-06 00:56:45 +09:00
parent 1d4e606f77
commit 94d3f92bb9
18 changed files with 156 additions and 57 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
*/
import type { TickerData } from '../hooks/useMarketTicker';
import type { OHLCVBar } from '../types';
import { formatUpbitKrwPrice } from './safeFormat';
export interface ChartLiveQuote {
price: number | null;
@@ -41,7 +42,7 @@ export function resolveChartLiveQuote(
export function formatChartLivePrice(price: number | null): string {
if (price == null || !Number.isFinite(price)) return '—';
return `${Math.round(price).toLocaleString('ko-KR')} KRW`;
return `${formatUpbitKrwPrice(price)} KRW`;
}
export function formatChartLiveChangePct(changePct: number | null): string {