Skip to content

feat: add stock ownership institutionalTrades, directorHoldings & tdccDistribution REST endpoints - #13

Merged
kevinypfan merged 2 commits into
masterfrom
feat/ownership-phase2
Aug 20, 2026
Merged

feat: add stock ownership institutionalTrades, directorHoldings & tdccDistribution REST endpoints#13
kevinypfan merged 2 commits into
masterfrom
feat/ownership-phase2

Conversation

@kevinypfan

Copy link
Copy Markdown
Collaborator

Summary

Wraps three new v1.0 `/stock/ownership/*` endpoints that are live on fugle-realtime (#623 三大法人, #642 董監持股, #641 集保分布). Same `from` / `to` / `sort` query contract as the existing `etfHoldings`.

  • `stock.ownership.institutionalTrades({ symbol })` → `ownership/institutional-trades/:symbol`
  • `stock.ownership.directorHoldings({ symbol })` → `ownership/director-holdings/:symbol`
  • `stock.ownership.tdccDistribution({ symbol })` → `ownership/tdcc-distribution/:symbol`

Response types mirror the server DTOs in `fugle-realtime/apps/service-stock/src/ownership/dto/`.

Test plan

  • `jest` — 105 passed (+9 new cases: api key / bearer / query params per endpoint)
  • `tsc --noEmit` clean

🤖 Generated with Claude Code

https://claude.ai/code/session_01DSkx8KegwNXgz4EDgdEcQa

…cDistribution REST endpoints

Wraps the v1.0 /stock/ownership/{institutional-trades,director-holdings,tdcc-distribution}/:symbol
endpoints (fugle-realtime issues 623 / 642 / 641). Same from/to/sort query contract as etfHoldings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DSkx8KegwNXgz4EDgdEcQa
@kevinypfan
kevinypfan force-pushed the feat/ownership-phase2 branch from 47ca5c3 to 7366d0d Compare August 20, 2026 07:54
@kevinypfan
kevinypfan merged commit 557d3a3 into master Aug 20, 2026
7 checks passed
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