feat(fundamental): add business-segments, institution-rating-views, industry-rank, industry-peers, financial-report-snapshot#526
Open
hogan-yuan wants to merge 6 commits into
Conversation
…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>
4 tasks
…tryPeerNode Confirmed via live API testing: - InstitutionRatingViewItem: date/buy/over/hold/under/sell/total come as strings - IndustryPeerNode: stock_num comes as an integer (i32) Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…ndustry-rank, industry-peers, financial-report-snapshot to all language SDKs Adds the 6 new fundamental APIs to Python, Node.js, Java, C, and C++: - business_segments / business_segments_history - institution_rating_views - industry_rank - industry_peers - financial_report_snapshot Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
…mental APIs SdkNative.java was missing the 6 native method declarations that FundamentalContext.java calls, causing Java compilation failure. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
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.
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 structsrust/src/fundamental/context.rs— 6 new async methods onFundamentalContextrust/src/blocking/fundamental.rs— 6 new blocking wrappers onFundamentalContextSyncCHANGELOG.md— updated[Unreleased]sectionTest plan
cargo clippy --all --all-features— passescargo +nightly fmt --all— appliedlongbridge business-segments AAPL.US,longbridge industry-rank --market US, etc.)🤖 Generated with Claude Code