-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of https://github.com/QuantWebProject/QuantWeb…
…-SpringServer- into feature/#58-대시보드-관련-api-구현
- Loading branch information
Showing
11 changed files
with
152 additions
and
24 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
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
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
7 changes: 7 additions & 0 deletions
7
...ringserver/domain/sales_transaction_history/dto/request/TransactionHistoryRequestDto.java
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,7 @@ | ||
package com.quantweb.springserver.domain.sales_transaction_history.dto.request; | ||
|
||
|
||
public class TransactionHistoryRequestDto { | ||
|
||
|
||
} |
50 changes: 50 additions & 0 deletions
50
...ngserver/domain/sales_transaction_history/dto/response/TransactionHistoryResponseDto.java
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,50 @@ | ||
package com.quantweb.springserver.domain.sales_transaction_history.dto.response; | ||
|
||
import com.quantweb.springserver.domain.sales_transaction_history.entity.TransactionType; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDate; | ||
import java.util.List; | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Builder | ||
public class TransactionHistoryResponseDto { | ||
|
||
private List<TransactionHistory> transactionHistories; | ||
|
||
private List<TransactionHistoryGraph> transactionHistoryGraph; //매매내역 - 그래프 | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Builder | ||
public static class TransactionHistory { | ||
private LocalDate transactionDate; //거래일시 | ||
private String stockName; //종목 | ||
private LocalDate period; //평균보유기간 | ||
private Integer realizedProfit; //실현손익 | ||
private Float profitPercentage; //수익률 | ||
private Float buyQuantity; //매수수량 | ||
private Float sellQuantity; //매도수량 | ||
private Long buyPrice; //매수금액 | ||
private Long sellPrice; //매도금액 | ||
private TransactionType status; //상태: 거래완료 | ||
private Integer fee; //수수료 | ||
} | ||
|
||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Getter | ||
@Builder | ||
public static class TransactionHistoryGraph { | ||
private LocalDate date; | ||
private Long amount; | ||
private TransactionType action; | ||
private String ticker; | ||
} | ||
} |
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