Skip to content

feat(exchange): add typed order grouping - #195

Open
drewstone wants to merge 3 commits into
hyperliquid-dex:masterfrom
tangle-network:feat/typed-order-grouping
Open

feat(exchange): add typed order grouping#195
drewstone wants to merge 3 commits into
hyperliquid-dex:masterfrom
tangle-network:feat/typed-order-grouping

Conversation

@drewstone

@drewstone drewstone commented Jul 28, 2026

Copy link
Copy Markdown

Summary

  • add a typed OrderGrouping enum for all three Hyperliquid wire values
  • expose grouping on bulk orders with and without builder fees
  • expose raw asset-index order, cancel, and leverage operations
  • preserve existing methods by delegating to the typed/raw methods
  • make exchange responses serializable for API passthrough

This supports atomic normalTpsl brackets and numeric asset IDs without accepting arbitrary grouping strings or converting exact decimal strings through floats.

Proof

  • cargo fmt --all -- --check
  • cargo test --lib: 13 passed, 0 failed
  • git diff --check
  • clean merge with current master

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.

1 participant