주가 표시형식 수정

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
@@ -1,6 +1,7 @@
/**
* 매매 시그널 알림 표시용 포맷·라벨
*/
import { formatUpbitKrwPrice } from './safeFormat';
import { formatUnixWithChartPattern, splitChartTimePattern } from './chartTimeFormat';
import { getKoreanName } from './marketNameCache';
import { getTradeAlertTimeFormat } from './tradeAlertTimeFormat';
@@ -27,7 +28,7 @@ export function parseMarket(market: string) {
export function formatSignalPrice(price: number): string {
if (!Number.isFinite(price) || price <= 0) return '—';
return `${price.toLocaleString('ko-KR', { maximumFractionDigits: 0 })}`;
return `${formatUpbitKrwPrice(price, '—')}`;
}
export function formatSignalTime(unixSec: number, withDate = true): string {