From f210aa0780a7722ab4b74e8d7ec552810fb61fb1 Mon Sep 17 00:00:00 2001 From: anjdydhody Date: Sun, 10 Nov 2024 00:35:32 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20add:=20=EC=B0=A8=ED=8A=B8=20respons?= =?UTF-8?q?e=EC=97=90=20=EC=A0=84=EC=9D=BC=20=EB=8C=80=EB=B9=84=20?= =?UTF-8?q?=EA=B0=92=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stock/index/dto/stock.index.list.chart.element.dto.ts | 6 +++++- BE/src/stock/index/stock.index.service.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/BE/src/stock/index/dto/stock.index.list.chart.element.dto.ts b/BE/src/stock/index/dto/stock.index.list.chart.element.dto.ts index 1f2abdce..ba6ce1f2 100644 --- a/BE/src/stock/index/dto/stock.index.list.chart.element.dto.ts +++ b/BE/src/stock/index/dto/stock.index.list.chart.element.dto.ts @@ -1,9 +1,10 @@ import { ApiProperty } from '@nestjs/swagger'; export class StockIndexListChartElementDto { - constructor(time: string, value: string) { + constructor(time: string, value: string, diff: string) { this.time = time; this.value = value; + this.diff = diff; } @ApiProperty({ description: 'HHMMSS', example: '130500' }) @@ -11,4 +12,7 @@ export class StockIndexListChartElementDto { @ApiProperty({ description: '주가 지수' }) value: string; + + @ApiProperty({ description: '전일 대비 주가 지수' }) + diff: string; } diff --git a/BE/src/stock/index/stock.index.service.ts b/BE/src/stock/index/stock.index.service.ts index 587af43d..f15326f5 100644 --- a/BE/src/stock/index/stock.index.service.ts +++ b/BE/src/stock/index/stock.index.service.ts @@ -21,6 +21,7 @@ export class StockIndexService { return new StockIndexListChartElementDto( element.bsop_hour, element.bstp_nmix_prpr, + element.bstp_nmix_prdy_vrss, ); }); }