Skip to content

chore: deprecate industry_valuation_dist - #646

Merged
hogan-yuan merged 1 commit into
mainfrom
chore/remove-industry-valuation-dist
Dec 4, 2026
Merged

hogan-yuan merged 1 commit into
mainfrom
chore/remove-industry-valuation-dist

Conversation

@hogan-yuan

@hogan-yuan hogan-yuan commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

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.

  • Rust: #[deprecated(since = "5.7.0")] on FundamentalContext::industry_valuation_dist (async and blocking) and on IndustryValuationDist / ValuationDist. The bindings' own uses are wrapped in #[allow(deprecated)], so the workspace builds without new warnings.
  • C: @deprecated in the doc comments, copied into longbridge.h by cbindgen (comment-only header diff).
  • C++: [[deprecated]] on FundamentalContext::industry_valuation_dist; the two types are documented as deprecated, since marking them would warn every user who includes the header.
  • Java: @Deprecated on getIndustryValuationDist() and the two classes.
  • Node.js: @deprecated on the method and types (index.d.ts updated).
  • Python: sync and async industry_valuation_dist emit a DeprecationWarning; the stub notes the deprecation.
  • CHANGELOG.md: a ### Deprecated entry under Unreleased.

industry_valuation (the peer comparison) is unaffected.

Testing

  • cargo +nightly fmt --all
  • cargo check --workspace --all-targets: no new warnings
  • cargo clippy -p longbridge --all-features --all-targets: no new warnings
  • cargo test -p longbridge: all passed
  • javac -Xlint:deprecation on the Java sources and clang++ -std=c++17 -fsyntax-only on the C++ context: clean

🤖 Generated with Claude Code

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
hogan-yuan force-pushed the chore/remove-industry-valuation-dist branch from cea38aa to f3f4934 Compare December 4, 2026 07:11
@hogan-yuan hogan-yuan changed the title chore!: remove industry_valuation_dist chore: deprecate industry_valuation_dist Dec 4, 2026
@hogan-yuan
hogan-yuan merged commit a0436fd into main Dec 4, 2026
56 checks passed
@hogan-yuan
hogan-yuan deleted the chore/remove-industry-valuation-dist branch December 4, 2026 08:56
@hogan-yuan hogan-yuan mentioned this pull request Dec 4, 2026
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)
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