fix: indicators/prices API 가 limit=N 단독 호출 시 최신 N개 반환 #70
No reviewers
Labels
No labels
api
bug
chore
collector
decision-needed
docs
enhancement
feature
feedback-loop
frontend
infra
skill
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xhh/financial-data-platform!70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-68-limit-recent-n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
요약
/api/indicators/{symbol},/api/prices/{symbol},/api/prices/batch/{symbols}가limit=N단독 호출 시 historical 시작점(1959년 등) 데이터를 반환하던 버그 수정.변경 내용
ORDER BY date DESC + LIMIT N후 응답에서 시간순(ASC) 정렬로 변경start_date/end_date명시 호출도 동일 정책으로 구간 내 최신 N개 반환발견 경위
claude-plugin macro-report 시범 전환 (#6) 의 첫 A/B 측정 (2026-04-26 liquidity)
중 발견. scanner 가
limit만 믿고 호출했다 1959년 값이 보고서에 흘러들어갈위험. 클라이언트 쪽에서는 모든 호출에
start_date명시로 우회 중이었음.테스트
tests/api/test_indicators_prices.py— 9 caselimit=N단독 호출 시 최신 N개 검증 (indicators / prices single / prices batch / crypto)start_date명시 호출 회귀 방지이슈
Closes #68
기존: ORDER BY date ASC + LIMIT N → 1959년 등 historical 시작점 반환. 변경: ORDER BY date DESC + LIMIT N 후 응답에서 시간순(ASC) 정렬. 영향 범위: - /api/indicators/{symbol} - /api/prices/{symbol} - /api/prices/batch/{symbols} start_date / end_date 명시 호출은 기존과 동일하게 구간 내 시간순 반환 (테스트로 회귀 방지). 응답 형식도 ASC 유지. claude-plugin macro-report 시범 전환 (#6) 의 첫 A/B 측정 중 발견된 잠복 버그. scanner 가 limit 만 믿고 호출하면 1959년 값이 보고서에 흘러들어갈 위험이 있었음. Closes #68