Skip to content

feat(fundamental): add business-segments, institution-rating-views, industry-rank, industry-peers, financial-report-snapshot#526

Draft
hogan-yuan wants to merge 1 commit into
mainfrom
feat/fundamental-business-segments-industry-rank
Draft

feat(fundamental): add business-segments, institution-rating-views, industry-rank, industry-peers, financial-report-snapshot#526
hogan-yuan wants to merge 1 commit into
mainfrom
feat/fundamental-business-segments-industry-rank

Conversation

@hogan-yuan
Copy link
Copy Markdown
Member

Summary

Ports 5 new fundamental data APIs from longbridge-terminal PR #202 into the Rust SDK.

  • business_segments — current-period revenue segment breakdown (GET /v1/quote/fundamentals/business-segments)
  • business_segments_history — historical segment trends by period/category (GET /v1/quote/fundamentals/business-segments/history)
  • institution_rating_views — monthly buy/hold/sell distribution timeline (GET /v1/quote/ratings/institutional)
  • industry_rank — industry ranking list by market and indicator (GET /v1/quote/industry/rank)
  • industry_peers — hierarchical sub-sector tree for a BK counter_id (GET /v1/quote/industries/peers)
  • financial_report_snapshot — AI earnings summary + forecast vs actual beat/miss analysis (GET /v1/quote/financials/earnings-snapshot)

Changes

  • rust/src/fundamental/types.rs — 13 new public structs
  • rust/src/fundamental/context.rs — 6 new async methods on FundamentalContext
  • rust/src/blocking/fundamental.rs — 6 new blocking wrappers on FundamentalContextSync
  • CHANGELOG.md — updated [Unreleased] section

Test plan

  • cargo clippy --all --all-features — passes
  • cargo +nightly fmt --all — applied
  • Verify each endpoint against the terminal CLI (longbridge business-segments AAPL.US, longbridge industry-rank --market US, etc.)

🤖 Generated with Claude Code

…ndustry-rank, industry-peers, financial-report-snapshot APIs

Ported from longbridge-terminal PR #202:
- business_segments / business_segments_history — GET /v1/quote/fundamentals/business-segments[/history]
- institution_rating_views — GET /v1/quote/ratings/institutional
- industry_rank — GET /v1/quote/industry/rank
- industry_peers — GET /v1/quote/industries/peers
- financial_report_snapshot — GET /v1/quote/financials/earnings-snapshot

Includes types, async context methods, and blocking wrappers.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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