Repository navigation
chore: deprecate industry_valuation_dist - #646
Merged
Merged
Conversation
The industry valuation distribution API (GET /v1/quote/industry-valuation-distribution) is being taken offline. Mark FundamentalContext::industry_valuation_dist and its response types IndustryValuationDist / ValuationDist as deprecated in the Rust core and every binding (C, C++, Java, Node.js, Python) instead of removing them in a minor release; they will be removed in the next major version. The Python methods also emit a DeprecationWarning. industry_valuation and its types are unaffected.
hogan-yuan
force-pushed
the
chore/remove-industry-valuation-dist
branch
from
December 4, 2026 07:11
cea38aa to
f3f4934
Compare
Merged
hogan-yuan
added a commit
that referenced
this pull request
Dec 4, 2026
Bumps all crates to 5.7.0 and moves `## [Unreleased]` to `## [5.7.0] - 2026-12-04`. Also adds the missing changelog entry for #643. Minor bump: new fields (#642), the HK signals refusal and new path validation in the HTTP client (#645), and a deprecation (#646). Nothing removed. ``` #646 chore: deprecate industry_valuation_dist #645 feat(signal): refuse signals for Longbridge Hong Kong accounts #642 feat(asset): expose bind_fail_reason on BankCard and the decision times on StockTransferIn #644 fix(asset): list every stock transfer state when no state filter is given #643 fix(httpclient): leave X-Api-Key out when an OAuth client has no client ID ``` After merge: push `main` to `release` to publish (crates.io, PyPI, npm, Maven, C++), then tag `v5.7.0` and publish the GitHub release. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
hogan-yuan
added a commit
to longbridge/developers
that referenced
this pull request
Dec 6, 2026
## Summary The industry valuation distribution API (`GET /v1/quote/industry-valuation-distribution`) is being taken offline. The SDKs deprecate it (longbridge/openapi#646, longbridge/openapi-go#156) and the CLI drops `industry-valuation dist` (longbridge/longbridge-terminal#365). This updates the docs to match, in en / zh-CN / zh-HK: - `openapi.yaml`: `deprecated: true` on `industry_valuation_dist`, with a deprecation line at the top of each description, per the style guide's "Deprecated endpoints" section. - SDK page `fundamental/industry_valuation_dist`: a `:::caution` deprecation notice pointing to the CLI `valuation-rank` command for an industry percentile rank. - CLI page `cli/fundamentals/industry-valuation`: removes the `dist` examples and links to `valuation-rank` for the percentile rank. The style guide asks for a removal date; none is set yet, so the notice says "the next major version". I'll add the date when it's decided. Merge after the CLI and SDK PRs are released. ## Testing - `openapi.yaml` parses (`yaml.safe_load`). Not built locally (the repo asks not to run builds in AI sessions). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
The industry valuation distribution API (
GET /v1/quote/industry-valuation-distribution) is being taken offline. Instead of removing it in a minor release, this marks the method and its types deprecated in every SDK, to be removed in the next major version. Nothing is removed and the C ABI is unchanged.#[deprecated(since = "5.7.0")]onFundamentalContext::industry_valuation_dist(async and blocking) and onIndustryValuationDist/ValuationDist. The bindings' own uses are wrapped in#[allow(deprecated)], so the workspace builds without new warnings.@deprecatedin the doc comments, copied intolongbridge.hby cbindgen (comment-only header diff).[[deprecated]]onFundamentalContext::industry_valuation_dist; the two types are documented as deprecated, since marking them would warn every user who includes the header.@DeprecatedongetIndustryValuationDist()and the two classes.@deprecatedon the method and types (index.d.tsupdated).industry_valuation_distemit aDeprecationWarning; the stub notes the deprecation.CHANGELOG.md: a### Deprecatedentry under Unreleased.industry_valuation(the peer comparison) is unaffected.Testing
cargo +nightly fmt --allcargo check --workspace --all-targets: no new warningscargo clippy -p longbridge --all-features --all-targets: no new warningscargo test -p longbridge: all passedjavac -Xlint:deprecationon the Java sources andclang++ -std=c++17 -fsyntax-onlyon the C++ context: clean🤖 Generated with Claude Code