Skip to content

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 into
hummingbot:developmentfrom
isreallee82:Refactor/hyperliquid-update
Feb 25, 2026
Merged

Update hyperliquid perpetual constants and refactor DEX market handling due to Hyperliquid api update for all hip-3 perp#8061
nikspz merged 6 commits into
hummingbot:developmentfrom
isreallee82:Refactor/hyperliquid-update

Conversation

@isreallee82

Copy link
Copy Markdown
Contributor

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:

  • Your code builds clean without any errors or warnings
  • Tests all pass
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

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.

@isreallee82

Copy link
Copy Markdown
Contributor Author

this pr eliminate need to call each dex seperately cc @nikspz

@rapcmia rapcmia added this to the v2.13 milestone Feb 25, 2026
@rapcmia rapcmia moved this from Backlog to Under Review in Pull Request Board Feb 25, 2026

@nikspz nikspz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 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

@nikspz
nikspz merged commit 0e7e546 into hummingbot:development Feb 25, 2026
2 checks passed
@nikspz nikspz moved this from Under Review to Development v2.13.0 in Pull Request Board Feb 25, 2026
@rapcmia rapcmia moved this from Development v2.13.0 to Release v2.13.0 in Pull Request Board Mar 3, 2026
@nikspz

nikspz commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

@isreallee82

Copy link
Copy Markdown
Contributor Author

Hi thanks for the support guys 🙏 so much appreciated cc @nikspz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants