Skip to content

chore: Market Insights - update service and type#8263

Merged
zone-live merged 8 commits intomainfrom
TSA-update-digest-parameter-and-add-perpsAssetId
Mar 23, 2026
Merged

chore: Market Insights - update service and type#8263
zone-live merged 8 commits intomainfrom
TSA-update-digest-parameter-and-add-perpsAssetId

Conversation

@zone-live
Copy link
Contributor

@zone-live zone-live commented Mar 20, 2026

Explanation

Fix searchDigest response parsing, the /asset-summary API changed its envelope key from digest to summary. Replaced MarketInsightsDigestEnvelopeStruct with MarketInsightsSummaryEnvelopeStruct so market insights reports are correctly unwrapped.
Adds perpsAssetId to RelatedAsset, new field for resolving Perps icon URLs on the client (supersedes the deprecated hlPerpsMarket).

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Medium Risk
Medium risk because it changes the /asset-summary request shape from caipAssetType/hlPerpsMarket to a single asset parameter, which could break lookups if the backend or clients rely on the old query keys.

Overview
AiDigestService.searchDigest now always calls /asset-summary?asset=<identifier> and drops the CAIP-19 vs perps-symbol branching (and the isCaipAssetType dependency).

Tests, JSDoc/types, and the package changelog are updated to reflect the universal asset parameter and clarify that RelatedAsset.hlPerpsMarket can represent any HyperLiquid market identifier (including synthetic perps like xyz:TSLA).

Written by Cursor Bugbot for commit 6a77da3. This will update automatically on new commits. Configure here.

@zone-live zone-live requested review from a team as code owners March 20, 2026 14:56
@zone-live zone-live added this pull request to the merge queue Mar 23, 2026
Merged via the queue into main with commit c2f6e4d Mar 23, 2026
326 checks passed
@zone-live zone-live deleted the TSA-update-digest-parameter-and-add-perpsAssetId branch March 23, 2026 10:43
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.

2 participants