Repository navigation
종가 누락 오표시와 운영 이벤트 중복 기록 수정 - #476
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 내용
종가 수집이 16시 30분보다 조금 일찍 끝나면, 당일 종가가 저장돼 있어도 이후 조회에서 누락으로 표시되던 오류를 수정했습니다. 10월 22일 16시 27분 실행 기록으로 재현했습니다.
이제 정상 종료한 종가 작업의 완료일과 전체 바스켓의 저장 여부를 확인해 기준일을 판단합니다. 기존 보고서도 원본을 고치지 않고 읽을 때 같은 기준을 적용합니다. 일부 바스켓 누락이나 연구 수집 오류는 계속 표시하며, 다음 거래일의 수집 시한이 지나면 새 누락도 감지합니다.
UTC 환경에서 같은 운영 이벤트가 반복 기록되던 문제도 수정했습니다. 한국 날짜로 중복을 조회하면서 저장은 호스트 시각에 맡겨 날짜가 어긋났습니다. 조회와 저장에 같은 한국 시각을 사용하고, 다른 날짜의 기록이 중복 판정에 섞이지 않도록 했습니다. 당일 봉·일일 손실 기준 테스트의 날짜도 본체와 같은 한국 시간 기준으로 맞췄습니다.
운영 문서에는 배당·분할 원장, 달력 변경 근거 보존, 실측 체결비용, 수급 지표, 동일 기간 버전 비교를 후속 과제로 정리했습니다. 이 항목들을 이번에 구현한 것으로 표시하지 않았습니다.
검증
매매 코드·위험 한도·실계좌 설정·승격 기준은 변경하지 않았습니다.