주가 표시형식 수정
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user