-
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 #101 from boostcampwm-2024/feature/api/stockTradeH…
…istory-#55 [BE] 6.04 매수/매도 요청 현황 API 구현
- Loading branch information
Showing
11 changed files
with
244 additions
and
75 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
BE/src/stock/trade/history/dto/daily-stock-trade-history-data.dto.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,27 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class DailyStockTradeHistoryDataDto { | ||
@ApiProperty({ description: '주식 영업 일자' }) | ||
stck_bsop_date: string; | ||
|
||
@ApiProperty({ description: '주식 시가' }) | ||
stck_oprc: string; | ||
|
||
@ApiProperty({ description: '주식 최고가' }) | ||
stck_hgpr: string; | ||
|
||
@ApiProperty({ description: '주식 최저가' }) | ||
stck_lwpr: string; | ||
|
||
@ApiProperty({ description: '주식 종가' }) | ||
stck_clpr: string; | ||
|
||
@ApiProperty({ description: '누적 거래량' }) | ||
acml_vol: string; | ||
|
||
@ApiProperty({ description: '전일 대비 부호' }) | ||
prdy_vrss_sign: string; | ||
|
||
@ApiProperty({ description: '전일 대비율' }) | ||
prdy_ctrt: string; | ||
} |
45 changes: 45 additions & 0 deletions
45
BE/src/stock/trade/history/dto/daily-stock-trade-history-ouput.dto.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,45 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class DailyStockTradeHistoryOutputDto { | ||
@ApiProperty({ description: '주식 영업 일자' }) | ||
stck_bsop_date: string; | ||
|
||
@ApiProperty({ description: '주식 시가' }) | ||
stck_oprc: string; | ||
|
||
@ApiProperty({ description: '주식 최고가' }) | ||
stck_hgpr: string; | ||
|
||
@ApiProperty({ description: '주식 최저가' }) | ||
stck_lwpr: string; | ||
|
||
@ApiProperty({ description: '주식 종가' }) | ||
stck_clpr: string; | ||
|
||
@ApiProperty({ description: '누적 거래량' }) | ||
acml_vol: string; | ||
|
||
@ApiProperty({ description: '전일 대비 거래량 비율' }) | ||
prdy_vrss_vol_rate: string; | ||
|
||
@ApiProperty({ description: '전일 대비' }) | ||
prdy_vrss: string; | ||
|
||
@ApiProperty({ description: '전일 대비 부호' }) | ||
prdy_vrss_sign: string; | ||
|
||
@ApiProperty({ description: '전일 대비율' }) | ||
prdy_ctrt: string; | ||
|
||
@ApiProperty({ description: 'HTS 외국인 소진율' }) | ||
hts_frgn_ehrt: string; | ||
|
||
@ApiProperty({ description: '외국인 순매수 수량' }) | ||
frgn_ntby_qty: string; | ||
|
||
@ApiProperty({ description: '락 구분 코드' }) | ||
flng_cls_code: string; | ||
|
||
@ApiProperty({ description: '누적 분할 비율' }) | ||
acml_prtt_rate: string; | ||
} |
8 changes: 8 additions & 0 deletions
8
BE/src/stock/trade/history/dto/daily-stock-trade-history-response.dto.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,8 @@ | ||
import { DailyStockTradeHistoryOutputDto } from './daily-stock-trade-history-ouput.dto'; | ||
|
||
/** | ||
* 주식현재가 일자별 API 응답값 정제 후 FE에 보낼 DTO | ||
*/ | ||
export class DailyStockTradeHistoryResponseDto { | ||
output: DailyStockTradeHistoryOutputDto[]; | ||
} |
16 changes: 0 additions & 16 deletions
16
BE/src/stock/trade/history/dto/stock-trade-history-query-parameter.dto.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
BE/src/stock/trade/history/dto/stock-trade-history-response.dto.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...story/dto/stock-trade-history-data.dto.ts → ...dto/today-stock-trade-history-data.dto.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
2 changes: 1 addition & 1 deletion
2
...ory/dto/stock-trade-history-output.dto.ts → ...o/today-stock-trade-history-output.dto.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
13 changes: 13 additions & 0 deletions
13
BE/src/stock/trade/history/dto/today-stock-trade-history-response.dto.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,13 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { TodayStockTradeHistoryOutputDto } from './today-stock-trade-history-output.dto'; | ||
|
||
/** | ||
* 주식현재가 체결 API 응답값 정제 후 FE에 보낼 DTO | ||
*/ | ||
export class TodayStockTradeHistoryResponseDto { | ||
@ApiProperty({ | ||
type: TodayStockTradeHistoryOutputDto, | ||
description: '상승률 순위', | ||
}) | ||
output: TodayStockTradeHistoryOutputDto[]; | ||
} |
23 changes: 23 additions & 0 deletions
23
BE/src/stock/trade/history/interface/inquire-daily-price.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,23 @@ | ||
export interface InquireDailyPriceOutputData { | ||
stck_bsop_date: string; | ||
stck_oprc: string; | ||
stck_hgpr: string; | ||
stck_lwpr: string; | ||
stck_clpr: string; | ||
acml_vol: string; | ||
prdy_vrss_vol_rate: string; | ||
prdy_vrss: string; | ||
prdy_vrss_sign: string; | ||
prdy_ctrt: string; | ||
hts_frgn_ehrt: string; | ||
frgn_ntby_qty: string; | ||
flng_cls_code: string; | ||
acml_prtt_rate: string; | ||
} | ||
|
||
export interface InquireDailyPriceApiResponse { | ||
output: InquireDailyPriceOutputData[]; | ||
rt_cd: string; | ||
msg_cd: string; | ||
msg1: string; | ||
} |
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.