Update hyperliquid perpetual constants and refactor DEX market handling due to Hyperliquid api update for all hip-3 perp#8061
Merged
nikspz merged 6 commits intoFeb 25, 2026
Conversation
3 tasks
Contributor
Author
|
this pr eliminate need to call each dex seperately cc @nikspz |
cardosofede
approved these changes
Feb 25, 2026
nikspz
approved these changes
Feb 25, 2026
nikspz
left a comment
Contributor
There was a problem hiding this comment.
- Test performed:
- cloned and installed PR
- connected hyperliquid_perpetual successfully
- checked balance matched with exchange
- created v1 strategy successfully using hyperliquid_perpetual
- reviewed markets showing on creation
- placed order lower than 10: Client reported Order notional is lower than minimum notional size 10 for the pair SOL-USD (Expected)
- order bigger than 10: Placed successfully
- order cancellation: ok
- Open and closed position successfully using perpetuals (SOL-USD) pair
- HIP-3 markets showing in available pairs markets
- created strategy using HIP-3 market (XYZ:SILVER-USD)
- started successfully
- orders placed successfully
- order cancellation: ok
- opened / closed position successfully
- position retrieval: ok
Contributor
|
sent retroactive bounty related to this snapshot to @isreallee82 Thank you for your contribution tx: https://etherscan.io/tx/0x782e4ca061baf859e3bc19fad6e7a2030dba621982fca4bc70997cd557db456b |
Contributor
Author
|
Hi thanks for the support guys 🙏 so much appreciated cc @nikspz |
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.
Refactor DEX market handling to accommodate updates in perpetual constants. Adjustments include renaming context types and modifying mock responses for testing to reflect the new structure. Ensure that asset contexts are fetched per DEX while maintaining compatibility with existing functionalities.
Before submitting this PR, please make sure:
A description of the changes proposed in the pull request:
Refactor DEX market handling to accommodate updates in perpetual constants. Adjustments include renaming context types and modifying mock responses for testing to reflect the new structure. Ensure that asset contexts are fetched per DEX while maintaining compatibility with existing functionalities.
Tests performed by the developer:
All existing tests have been updated and pass successfully.
Tips for QA testing:
Verify that DEX market handling functions correctly with the updated perpetual constants and that all tests return expected results.