@@ -1483,7 +1598,7 @@ ${holdingsText}
수익률 랭킹
종목별 상세 현황
-
헤더 클릭으로 정렬
+
헤더 클릭으로 정렬 · 비중은 총 평가금액 대비
@@ -1506,6 +1621,7 @@ ${holdingsText}
))}
+
비중 |
@@ -1517,6 +1633,10 @@ ${holdingsText}
: item.current_price != null
? item.current_price * item.quantity
: null;
+ const totalEval = toNumeric(portfolioSummary.total_eval);
+ const weight = evalAmt != null && totalEval
+ ? Math.round((evalAmt / totalEval) * 1000) / 10
+ : null;
return (
|
@@ -1543,6 +1663,9 @@ ${holdingsText}
|
{evalAmt != null ? formatNumber(evalAmt) : '-'}
|
+
+ {weight != null ? `${weight.toFixed(1)}%` : '-'}
+ |
);
})}
diff --git a/vite.config.js b/vite.config.js
index 8e4cb45..eaf1c98 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -38,21 +38,36 @@ export default defineConfig({
secure: true,
rewrite: () => '/v8/finance/chart/%5EVIX?interval=1d&range=1d',
},
- // 미국 10년물 국채 금리 (^TNX)
+ // 미국 10년물 국채 금리 (^TNX) — Yahoo Finance
+ // 프로덕션 nginx 설정 필요:
+ // location /ext/treasury {
+ // proxy_pass https://query1.finance.yahoo.com/v8/finance/chart/%5ETNX?interval=1d&range=1d;
+ // proxy_set_header Host query1.finance.yahoo.com;
+ // }
'/ext/treasury': {
target: 'https://query1.finance.yahoo.com',
changeOrigin: true,
secure: true,
rewrite: () => '/v8/finance/chart/%5ETNX?interval=1d&range=1d',
},
- // WTI 원유 선물 (CL=F)
+ // WTI 원유 선물 (CL=F) — Yahoo Finance
+ // 프로덕션 nginx 설정 필요:
+ // location /ext/wti {
+ // proxy_pass https://query1.finance.yahoo.com/v8/finance/chart/CL%3DF?interval=1d&range=1d;
+ // proxy_set_header Host query1.finance.yahoo.com;
+ // }
'/ext/wti': {
target: 'https://query1.finance.yahoo.com',
changeOrigin: true,
secure: true,
rewrite: () => '/v8/finance/chart/CL%3DF?interval=1d&range=1d',
},
- // Brent 원유 선물 (BZ=F)
+ // Brent 원유 선물 (BZ=F) — Yahoo Finance
+ // 프로덕션 nginx 설정 필요:
+ // location /ext/brent {
+ // proxy_pass https://query1.finance.yahoo.com/v8/finance/chart/BZ%3DF?interval=1d&range=1d;
+ // proxy_set_header Host query1.finance.yahoo.com;
+ // }
'/ext/brent': {
target: 'https://query1.finance.yahoo.com',
changeOrigin: true,