Skip to content

Commit

Permalink
➕ add: 차트 그리기에 필요한 값 추가 및 인터페이스 이름 변경#54
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuo3o authored and jinddings committed Nov 14, 2024
1 parent 383a166 commit 463c4cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions BE/src/stock/detail/dto/stock-detail-chart-data.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ export class InquirePriceChartDataDto {

@ApiProperty({ description: '누적 거래량' })
acml_vol: string;

@ApiProperty({ description: '전일 대비 부호' })
prdy_vrss_sign: string;
}
4 changes: 3 additions & 1 deletion BE/src/stock/detail/stock-detail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Injectable, Logger } from '@nestjs/common';
import { KoreaInvestmentService } from '../../koreaInvestment/korea-investment.service';
import { getHeader } from '../../util/get-header';
import { getFullURL } from '../../util/get-full-URL';
import { InquirePriceApiResponse } from './interface/stock-detail.interface';
import { InquirePriceApiResponse } from './interface/stock-detail-chart.interface';
import { InquirePriceChartDataDto } from './dto/stock-detail-chart-data.dto';

@Injectable()
Expand Down Expand Up @@ -76,6 +76,7 @@ export class StockDetailService {
stck_hgpr,
stck_lwpr,
acml_vol,
prdy_vrss_sign,
} = info;

stockData.stck_bsop_date = stck_bsop_date;
Expand All @@ -84,6 +85,7 @@ export class StockDetailService {
stockData.stck_hgpr = stck_hgpr;
stockData.stck_lwpr = stck_lwpr;
stockData.acml_vol = acml_vol;
stockData.prdy_vrss_sign = prdy_vrss_sign;

return stockData;
});
Expand Down

0 comments on commit 463c4cd

Please sign in to comment.