-
-
Notifications
You must be signed in to change notification settings - Fork 287
feat(perps-controller): integrate Terminal API for market metadata with HyperLiquid fallback #9137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
michalconsensys
wants to merge
36
commits into
main
Choose a base branch
from
feat/perps-terminal-api-markets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
ec0a27f
feat(perps-controller): integrate Terminal API as primary market data…
michalconsensys 2e6e684
fix(perps-controller): apply params filtering to Terminal API getMark…
michalconsensys 3478db9
fix(perps-controller): fetch terminal metadata in parallel with provi…
michalconsensys 48d5c51
fix(perps-controller): make terminalApiBaseUrl optional on PerpsPlatf…
michalconsensys 122c8ba
fix(perps-controller): validate marketType from Terminal API against …
michalconsensys ffb4791
fix(perps-controller): add runtime schema validation for Terminal API…
michalconsensys deb3e34
Revert "fix(perps-controller): apply params filtering to Terminal API…
michalconsensys a2116df
Revert "fix(perps-controller): fetch terminal metadata in parallel wi…
michalconsensys e7a60b7
Revert "fix(perps-controller): make terminalApiBaseUrl optional on Pe…
michalconsensys 1f25950
Revert "fix(perps-controller): validate marketType from Terminal API …
michalconsensys 8838cb6
fix(perps-controller): replace restricted `in` operator with hasOwnPr…
michalconsensys 3b647a8
test(perps-controller): verify Terminal API parsing tolerates extra p…
michalconsensys 138a209
test(perps-controller): verify marketType accepts any non-empty strin…
michalconsensys 90d0310
fix(perps-controller): align @metamask/superstruct version to ^3.1.0 …
michalconsensys 1538343
docs(perps-controller): update changelog PR links to #9137
michalconsensys ac5a959
fix(perps-controller): resolve lint violations in tests and remove de…
michalconsensys 091b501
style(perps-controller): fix prettier formatting
michalconsensys e4b456c
style(perps-controller): fix oxfmt formatting in marketDataTransform
michalconsensys e5533b3
refactor(perps-controller): replace remote feature flag with explicit…
michalconsensys c928c7a
fix(perps-controller): route standalone getMarkets through MarketData…
michalconsensys 4311219
fix(perps-controller): use case-insensitive symbol matching for Termi…
michalconsensys e98819f
Merge branch 'main' into feat/perps-terminal-api-markets
michalconsensys a5f381a
style(perps-controller): fix prettier formatting in MarketDataService
michalconsensys c761cb2
fix(perps-controller): address PR review feedback for Terminal API in…
michalconsensys 98b9873
style(perps-controller): fix prettier formatting in TerminalMarketSer…
michalconsensys a3242fe
fix(perps-controller): remove hardcoded Terminal API endpoint URLs fr…
michalconsensys 5cf1fd2
fix(perps-controller): address PR review — Terminal path filtering, c…
michalconsensys 66beaa2
Merge branch 'main' into feat/perps-terminal-api-markets
michalconsensys e0e8fd6
Merge branch 'main' into feat/perps-terminal-api-markets
michalconsensys 9aa0d1d
style(perps-controller): fix prettier formatting after merge
michalconsensys d903cb0
fix(perps-controller): use top-level type-only import in TerminalMark…
michalconsensys 50a0a6e
Merge branch 'main' into feat/perps-terminal-api-markets
michalconsensys 9d28acb
fix(perps-controller): move PR #9137 changelog entries to Unreleased
michalconsensys 731371e
refactor(perps-controller): move TerminalMarketService into PerpsPlat…
michalconsensys 846a8b4
style(perps-controller): fix prettier formatting in MarketDataService
michalconsensys 56b62ce
Merge branch 'main' into feat/perps-terminal-api-markets
michalconsensys File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getMarkets()currently falls back only when the Terminal request fails or returns an empty response. The PR description also says static fallback data remains available for assets absent from Terminal, but when Terminal returns a non-empty list that lacks the requested symbol or DEX, the filtered result is returned as [] and the HyperLiquid fallback is skipped.Please fall back to the provider when a constrained Terminal query (symbols or dex) produces no matches, so Terminal partial coverage does not make provider-backed markets undiscoverable