Skip to content

Commit fdcad33

Browse files
Merge pull request #53 from InserToken/feat/52-financialChart-jihwan
Feat/52 financial chart jihwan
2 parents 4dd69f0 + 4c2d9a3 commit fdcad33

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

services/metricsService.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ async function computeMetrics(stockCode, dateStr) {
6767
const bps = valid[valid.length - 1].bps;
6868
const roe = valid[valid.length - 1].roe;
6969

70-
const pbr = bps ? stockPrice / bps : null;
71-
const per = eps ? stockPrice / eps : null;
72-
const psr = ttmRevenue ? (stockPrice * shareCount) / ttmRevenue : null;
70+
// const pbr = bps ? stockPrice / bps : null;
71+
// const per = eps ? stockPrice / eps : null;
72+
// const psr = ttmRevenue ? (stockPrice * shareCount) / ttmRevenue : null;
7373

7474
const series = {
7575
period: valid.map((e) => `${e.bsns_year}.${e.reprt_code}`),
@@ -84,9 +84,11 @@ async function computeMetrics(stockCode, dateStr) {
8484

8585
return {
8686
price: { price: stockPrice, date: priceDate },
87-
per,
88-
psr,
89-
pbr,
87+
stockPrice,
88+
shareCount,
89+
// per,
90+
// psr,
91+
// pbr,
9092
eps,
9193
bps,
9294
roe,

0 commit comments

Comments
 (0)