Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void updateCurrentStockData() {

for (int i = 0; i < Math.min(30, stockList.size()); i++)
stockList.get(i).updateCurrentPriceInfo(stockCurrentPriceList.get(i));
log.info("[stock] 현재 주가 데이터 업데이트 진행률 {}%", Math.min((stockIdx + 1) * 30, stocks.size()) * 100 / stocks.size());
}
log.info("[stock] 현재 주가 데이터 업데이트 완료");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ public KisIndexCurrentPrice getIndexCurrentPrice(String indexCode) {
throw new GeneralException(ErrorStatus.FEIGN_ERROR);
}

KisIndexCurrentPrice price = response.getOutput();
log.info("[KIS] 지수 조회 성공: {} / 현재가={}", indexCode, price.getCurrentPrice());
return price;
return response.getOutput();

} catch (Exception e) {
log.error("[KIS] 지수 조회 중 예외 발생 (indexCode={}): {}", indexCode, e.getMessage());
Expand Down Expand Up @@ -85,7 +83,6 @@ public List<KisIndexPeriodPrice> getIndexPeriodPrice(String indexCode, LocalDate
throw new GeneralException(ErrorStatus.FEIGN_ERROR);
}

log.info("[KIS] 업종 기간별 시세 조회 성공: indexCode={}, 데이터 개수={}",
indexCode, response.getOutput2() != null ? response.getOutput2().size() : 0);

return response.getOutput2();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ public KisStockCurrentPrice getStockCurrentPrice(String stockCode) {
throw new GeneralException(ErrorStatus.FEIGN_ERROR);
}

KisStockCurrentPrice price = response.getOutput();
log.info("[KIS] 주가 조회 성공: {} / 현재가 {}", stockCode, price.getCurrentPrice());
return price;
return response.getOutput();

} catch (Exception e) {
log.error("[KIS] 주가 조회 실패 (stockCode={}): {}", stockCode, e.getMessage());
Expand Down Expand Up @@ -81,8 +79,6 @@ public KisPeriodResponseWrapper<KisStockCurrentPrice, KisStockPeriodPrice> getSt
if (!response.getResultCode().equals("0")) {
throw new GeneralException(ErrorStatus.FEIGN_ERROR);
}

log.info("[KIS] 기간별 주가 조회 성공: {} ({} ~ {}) {}개 조회", stockCode, startDate, endDate, response.getOutput2().size());
return response;

} catch (Exception e) {
Expand Down Expand Up @@ -123,7 +119,6 @@ public KisResponseWrapper<List<KisMultieStockCurrentPrice>> getMultiStockCurrent
throw new GeneralException(ErrorStatus.FEIGN_ERROR);
}

log.info("[KIS] 멀티 주가 조회 성공");
return response;

} catch (Exception e) {
Expand Down
Loading