AI-Funding / AI_Funding_BE

0 stars 1 forks source link

Feature/#16 json통합 #58

Closed JinSeoHan closed 2 years ago

JinSeoHan commented 2 years ago

구현목록

Ai 현재종목탭과 거래내역부분의 json을 통합하였습니다.

api주소

주소 메서드
api/ai-page/ POST

받는값

{
    "customer_info_id" : "1",
    "login_type" : "00"
}

넘겨주는값

"currStockItemsResponseDto": {
        "accountInfoResponseDtos": [
            {
                "accountName": "계좌이름",
                "stocks": [
                    {
                        "stockName": "주식이름",
                        "currentPrice": "현재가",
                        "stockPriceChange": "전일종가 대비 현재가",
                        "stockRateChange": "전일종가 대비 변동률",
                        "stockChange": "상승 하락 변동률",
                        "stockDetails": [
                            {
                                "createAtPrice": "당일 날짜의 주식 가격",
                                "createAt": "당일 날짜"
                            },
                            {
                                "createAtPrice": "당일 날짜의 주식 가격",
                                "createAt": "당일 날짜"
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "accountTradeHistoryResponseDto": {
        "tradeHistoryListResponseDtos": [
            {
                "accountName": "한한서진",
                "tradeHistory": [
                    {
                        "stockName": "종목 이름",
                        "tradeDate": "거래 날짜",
                        "totalPrice": "거래 금액",
                        "tradeType": "거래 종류",
                        "tradeAmount": "거래 수량",
                        "currentPrice":"단가",
                        "tradePrice": "매수/도 가"
                    },
                    {
                        "stockName": "종목 이름",
                        "tradeDate": "거래 날짜",
                        "totalPrice": "거래 금액",
                        "tradeType": "거래 종류",
                        "tradeAmount": "거래 수량",
                        "currentPrice":"단가",
                        "tradePrice": "매수/도 가"
                    },
                    {
                        "stockName": "종목 이름",
                        "tradeDate": "거래 날짜",
                        "totalPrice": "거래 금액",
                        "tradeType": "거래 종류",
                        "tradeAmount": "거래 수량",
                        "currentPrice":"단가",
                        "tradePrice": "매수/도 가"
                    }
                ]
            }
        ]
    }
}