Skip to content

docs(provider): 읽기 전용 market data provider 사양 추가#25

Open
dkfhddla wants to merge 1 commit into
mainfrom
codex/read-only-provider-docs
Open

docs(provider): 읽기 전용 market data provider 사양 추가#25
dkfhddla wants to merge 1 commit into
mainfrom
codex/read-only-provider-docs

Conversation

@dkfhddla

@dkfhddla dkfhddla commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • 읽기 전용 투자처 API 연동 Seed를 durable 문서로 반영했습니다.
  • 토스증권을 첫 검증 provider로 두되, 장기적으로는 사용자별 투자처 API 등록형 구조를 문서화했습니다.
  • 주문 실행, dry-run 주문, 자동매매, 출처 없는 AI 요약은 비목표로 유지했습니다.

Scope

  • 제품 요구사항에 REQ-SSV-010을 추가했습니다.
  • docs/specs/read-only-market-data-provider.md를 새로 추가했습니다.
  • 백엔드 아키텍처에 SVC-009 Market Data Providers 경계를 추가했습니다.
  • MAP.md에 새 spec 위치를 반영했습니다.

Documentation impact

  • Updated: docs/product-requirements/stock-signal-view.md
  • Added: docs/specs/read-only-market-data-provider.md
  • Updated: docs/arch/backend-architecture-slices.md
  • Updated: MAP.md

Verification

  • 문서 내용 수동 검토
  • git diff --stat
  • git status -sb

문서 전용 변경이라 빌드/테스트는 실행하지 않았습니다.

Residual risks

  • 토스증권 API의 공식 사용 가능 여부, 인증 방식, 약관, 호출 제한은 구현 전에 확인이 필요합니다.
  • 사용자별 provider 자격 증명 저장 방식은 아직 미결정입니다.
  • 로컬 미추적 .codegraph/ 디렉터리는 PR에 포함하지 않았습니다.

@dkfhddla dkfhddla changed the title [codex] read-only provider seed 문서 반영 docs(provider): 읽기 전용 market data provider 사양 추가 Jul 1, 2026
@dkfhddla

dkfhddla commented Jul 1, 2026

Copy link
Copy Markdown
Owner Author

@codex

@dkfhddla dkfhddla marked this pull request as ready for review July 1, 2026 15:15
@dkfhddla dkfhddla self-assigned this Jul 1, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 53d4bf4593

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


- [ ] 토스증권 API는 첫 read-only provider 검증 대상으로 문서화되어 있다.
- [ ] provider adapter는 보유 종목, 현재가, KOSPI/KOSDAQ 지수를 공통 내부 모델로 정규화한다.
- [ ] provider 결과는 provider명, 데이터 출처, 마지막 갱신 시각을 포함할 수 있다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Require provider metadata in acceptance criteria

RMP-003/RMP-006 require provider/source/update-time metadata to be carried and shown, but this acceptance item only says the provider result "can" include provider name, source, and last refresh time. In a provider implementation that omits these fields, the checklist could still be marked complete while the dashboard cannot satisfy the provenance/staleness guarantees added by this spec; make the acceptance criterion mandatory and include the price reference time as well.

Useful? React with 👍 / 👎.


- `backend/tests`: fake provider로 보유 종목, 현재가, KOSPI/KOSDAQ 지수 정규화 테스트를 추가한다.
- `backend/tests`: 인증 실패, 권한 없음, 데이터 지연, provider 오류 상태가 안전하게 전파되는지 검증한다.
- `backend/tests`: provider 데이터로 당일 및 보유 기간 상대성과가 계산 규칙과 일치하는지 검증한다.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Specify baseline inputs for holding-period returns

This verification expectation asks tests to compute holding-period relative performance from provider data, but the provider contract above only requires holdings/current prices/current KOSPI/KOSDAQ normalization. The existing calculation rules need the current holding period's first-buy date/price and the corresponding baseline market index, so a fake provider following this spec would have to invent missing baselines or compute against the wrong period; require those inputs/imported trades or state that holding-period relative return is UNAVAILABLE when they are absent.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant