feat: add Hyperliquid WebSocket streaming support#100
Closed
user1303836 wants to merge 1 commit intomainfrom
Closed
feat: add Hyperliquid WebSocket streaming support#100user1303836 wants to merge 1 commit intomainfrom
user1303836 wants to merge 1 commit intomainfrom
Conversation
Extend the existing Solana-only streaming endpoints to also support Hyperliquid real-time WebSocket streaming. Multi-chain dispatch in start_stream routes to either SolanaGrpcAdapter or HyperliquidWsClient based on the chain field. Hyperliquid streams require a wallet address and use an mpsc channel to bridge sync WS callbacks into the async batch-flush pipeline. Changes: - Add chain/wallet fields to StreamEntry, StreamInfo, StartStreamRequest - Dispatch start_stream between solana and hyperliquid chains - Validate wallet address for hyperliquid streams - Populate chain/wallet in list_streams response - Skip wallet serialization when None (solana streams) - Add tests for HL missing/invalid wallet, chain+wallet in list output
Owner
Author
|
Closing per wind-down. Issue #99 tracks this as future work. The implementation here can be referenced when picking it up. |
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
Extends the existing Solana-only streaming endpoints (from PR #94) to also support Hyperliquid real-time WebSocket streaming.
start_streamroutes to eitherSolanaGrpcAdapterorHyperliquidWsClientbased on thechainfieldwalletaddress parameter and validate it before startingStreamEntryandStreamInfonow includechainand optionalwalletfieldslist_streamsresponse includes chain/wallet; wallet is omitted when None (solana streams)Test plan
-D warnings