[codex] add hyperliquid routes and sync openapi#54
Merged
Conversation
185cd0a to
91da36c
Compare
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
This PR syncs the SDK with the latest OpenAPI spec from the staging endpoint and adds first-class wrapper support for the new HyperLiquid analytics routes.
Before this change, the generated
src/openapi.d.tsexposed HyperLiquid endpoints that were not available throughsrc/index.ts. That meant consumers could see the routes in the generated types but could not call them from the high-level SDK client without dropping down to the raw OpenAPI client.Root cause
The SDK wrapper and tests had not yet been updated after the staging OpenAPI spec introduced the HyperLiquid route family and refreshed some existing SVM protocol enums/metadata.
What changed
src/openapi.d.tsfrom the staging OpenAPI endpointclient.hyperliquidtoTokenAPIGET /v1/hyperliquid/dexesGET /v1/hyperliquid/marketsGET /v1/hyperliquid/markets/ohlcGET /v1/hyperliquid/markets/oiGET /v1/hyperliquid/markets/activityGET /v1/hyperliquid/markets/liquidationsGET /v1/hyperliquid/markets/liquidations/ohlcGET /v1/hyperliquid/usersGET /v1/hyperliquid/users/positionsGET /v1/hyperliquid/users/activityGET /v1/hyperliquid/vaultsGET /v1/hyperliquid/vaults/depositorsGET /v1/hyperliquid/platformsrc/index.tsto match the regenerated specsrc/index.tsat 100% function and line coverageUser impact
Consumers can now call the full HyperLiquid endpoint set through the typed SDK instead of manually using
getClient()and raw path strings.Validation
bun run generatebun run typecheckbun test --coverage