feat(exchange): add Hyperliquid spot markets#445
Open
Shunab wants to merge 1 commit into
Open
Conversation
Load spotMeta alongside perp meta, resolve @index symbols to readable pair labels for search and UI, and keep wire ids for subscriptions.
There was a problem hiding this comment.
Pull request overview
Adds Hyperliquid spot market support alongside existing perp support, including readable spot pair labels (e.g. WOW/USDC) while preserving Hyperliquid’s real market ids (e.g. @109) for subscriptions/trade routing, plus a WS keepalive.
Changes:
- Fetches Hyperliquid
meta+spotMeta, merges them into a single product list, and exports a spot id → readable pair label map. - Extends product parsing/indexing/search/display to support
displayPair(used for Hyperliquid spot readability). - Adds Hyperliquid WebSocket keepalive hooks and updates multiple UI surfaces to prefer
displayPair.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
src/worker/exchanges/hyperliquid.ts |
Adds spotMeta fetching/formatting, spot label generation, delisted filtering, and WS keepalive. |
src/store/app.ts |
Extends Product with optional displayPair. |
src/services/productsService.ts |
Stores Hyperliquid spot labels, sets displayPair, updates search/display helpers, and classifies Hyperliquid spot vs perp. |
src/components/trades/TradesSettings.vue |
Displays readable pair names in trade settings when available. |
src/components/trades/tradesFeed.ts |
Uses a shared display-pair helper for trade pair rendering. |
src/components/settings/Exchange.vue |
Displays displayPair in exchange market lists. |
src/components/SearchDialog.vue |
Uses displayPair in results and expands matching logic to include it. |
src/components/chart/MarketsOverlay.vue |
Formats market ids for display using readable spot pair labels where available. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
79
to
83
| return { | ||
| products | ||
| products, | ||
| spotPairLabels: this.spotPairLabels | ||
| } | ||
| } |
| !Array.isArray(data) && | ||
| data.spotPairLabels | ||
| ) { | ||
| Object.assign(hyperliquidSpotPairLabels, data.spotPairLabels) |
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
Adds Hyperliquid spot market support alongside the existing perp support.
metaandspotMetafrom Hyperliquid@109WOW/USDCNotes
Non-canonical Hyperliquid spot markets still use their exchange ids internally, e.g.
HYPERLIQUID:@109, so subscriptions and trade routing continue to match Hyperliquid’s WebSocket payloads.A matching
aggr-serverupdate will be added separately for historical support.