-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from boostcampwm-2024/feature/api/stockDetail-#54
[BE] 6.02 각 주식 정보 가져오기 API 구현 #54
- Loading branch information
Showing
10 changed files
with
298 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { InquirePriceChartDataDto } from './stock-detail-chart-data.dto'; | ||
|
||
export class InquirePriceChartResponseDto { | ||
output: InquirePriceChartDataDto[]; | ||
} |
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
BE/src/stock/detail/dto/stock-detail-query-parameter.dto.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,27 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { InquirePriceOutput1Dto } from './stock-detail-output1.dto'; | ||
import { InquirePriceOutput2Dto } from './stock-detail-output2.dto'; | ||
|
||
/** | ||
* 국내주식기간별시세(일/주/월/년) API 응답값 정제 후 FE에 보낼 DTO | ||
*/ | ||
export class InquirePriceResponseDto { | ||
@ApiProperty({ type: InquirePriceOutput1Dto, description: '상승률 순위' }) | ||
output1: InquirePriceOutput1Dto; | ||
@ApiProperty({ description: 'HTS 한글 종목명' }) | ||
hts_kor_isnm: string; | ||
|
||
@ApiProperty({ type: [InquirePriceOutput2Dto], description: '하락률 순위' }) | ||
output2: InquirePriceOutput2Dto[]; | ||
@ApiProperty({ description: '종목코드' }) | ||
stck_shrn_iscd: string; | ||
|
||
@ApiProperty({ description: '주식 현재가' }) | ||
stck_prpr: string; | ||
|
||
@ApiProperty({ description: '전일 대비' }) | ||
prdy_vrss: string; | ||
|
||
@ApiProperty({ description: '전일 대비 부호' }) | ||
prdy_vrss_sign: string; | ||
|
||
@ApiProperty({ description: '전일 대비율' }) | ||
prdy_ctrt: string; | ||
|
||
@ApiProperty({ description: 'HTS 시가총액' }) | ||
hts_avls: string; | ||
|
||
@ApiProperty({ description: 'PER' }) | ||
per: string; | ||
} |
56 changes: 56 additions & 0 deletions
56
BE/src/stock/detail/interface/stock-detail-chart.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
export interface InquirePriceOutput1Data { | ||
prdy_vrss: string; | ||
prdy_vrss_sign: string; | ||
prdy_ctrt: string; | ||
stck_prdy_clpr: string; | ||
acml_vol: string; | ||
acml_tr_pbmn: string; | ||
hts_kor_isnm: string; | ||
stck_prpr: string; | ||
stck_shrn_iscd: string; | ||
prdy_vol: string; | ||
stck_mxpr: string; | ||
stck_llam: string; | ||
stck_oprc: string; | ||
stck_hgpr: string; | ||
stck_lwpr: string; | ||
stck_prdy_oprc: string; | ||
stck_prdy_hgpr: string; | ||
stck_prdy_lwpr: string; | ||
askp: string; | ||
bidp: string; | ||
prdy_vrss_vol: string; | ||
vol_tnrt: string; | ||
stck_fcam: string; | ||
lstn_stcn: string; | ||
cpfn: string; | ||
hts_avls: string; | ||
per: string; | ||
eps: string; | ||
pbr: string; | ||
itewhol_loan_rmnd_ratem_name: string; | ||
} | ||
|
||
export interface InquirePriceOutput2Data { | ||
stck_bsop_date: string; | ||
stck_clpr: string; | ||
stck_oprc: string; | ||
stck_hgpr: string; | ||
stck_lwpr: string; | ||
acml_vol: string; | ||
acml_tr_pbmn: string; | ||
flng_cls_code: string; | ||
prtt_rate: string; | ||
mod_yn: string; | ||
prdy_vrss_sign: string; | ||
prdy_vrss: string; | ||
revl_issu_reas: string; | ||
} | ||
|
||
export interface InquirePriceChartApiResponse { | ||
output1: InquirePriceOutput1Data; | ||
output2: InquirePriceOutput2Data[]; | ||
rt_cd: string; | ||
msg_cd: string; | ||
msg1: string; | ||
} |
104 changes: 66 additions & 38 deletions
104
BE/src/stock/detail/interface/stock-detail.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.