Skip to content

refactor(fundamental): move etf_asset_allocation from QuoteContext to FundamentalContext#536

Merged
huacnlee merged 1 commit into
mainfrom
etf-allocation-fundamental
Jun 4, 2026
Merged

refactor(fundamental): move etf_asset_allocation from QuoteContext to FundamentalContext#536
huacnlee merged 1 commit into
mainfrom
etf-allocation-fundamental

Conversation

@huacnlee
Copy link
Copy Markdown
Member

@huacnlee huacnlee commented Jun 4, 2026

Summary

Follow-up to #535 (merged with the API on QuoteContext): relocate etf_asset_allocation and its types (AssetAllocationResponse / AssetAllocationGroup / AssetAllocationItem, HoldingDetail, ElementType) to the fundamental module across all languages.

  • Rust: types/method moved to fundamental; blocking wrapper moved to FundamentalContextSync
  • Python: classes registered under fundamental module; method on FundamentalContext / AsyncFundamentalContext; openapi.pyi updated
  • Node.js: etfAssetAllocation now on FundamentalContext; index.d.ts/index.js regenerated
  • C: lb_quote_context_etf_asset_allocationlb_fundamental_context_etf_asset_allocation; FFI types moved to fundamental_context; longbridge.h regenerated
  • C++: method moved to fundamental::FundamentalContext; types moved to namespace fundamental
  • CHANGELOG [Unreleased] entry updated accordingly

Breaking change note

QuoteContext::etf_asset_allocation was only on main briefly (unreleased), so moving it pre-release avoids shipping it in the wrong context.

Verification

  • cargo clippy --all --all-features: clean
  • cargo +nightly fmt --all: applied
  • All crates compile; C++ checked with -fsyntax-only
  • Verified end-to-end against staging via the CLI integration (QQQ.US returns all four allocation groups)

🤖 Generated with Claude Code

…ontext

Relocate the API and its types (AssetAllocationResponse / Group / Item,
HoldingDetail, ElementType) to the fundamental module across all
languages:

- Rust: types/method moved to fundamental, blocking wrapper moved to
  FundamentalContextSync
- Python: classes registered under fundamental module; method on
  FundamentalContext / AsyncFundamentalContext; openapi.pyi updated
- Node.js: etfAssetAllocation now on FundamentalContext;
  index.d.ts/index.js regenerated
- C: lb_quote_context_etf_asset_allocation →
  lb_fundamental_context_etf_asset_allocation; FFI types moved to
  fundamental_context; longbridge.h regenerated
- C++: method moved to fundamental::FundamentalContext; types moved to
  namespace fundamental

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@huacnlee huacnlee merged commit 4f055f2 into main Jun 4, 2026
56 checks passed
@huacnlee huacnlee deleted the etf-allocation-fundamental branch June 4, 2026 03:47
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