Skip to content

add support for spot markets#10

Open
bad-auth wants to merge 1 commit intohyperliquid-dex:mainfrom
bad-auth:main
Open

add support for spot markets#10
bad-auth wants to merge 1 commit intohyperliquid-dex:mainfrom
bad-auth:main

Conversation

@bad-auth
Copy link

It seems like the reason spot is not currently supported is because special addresses (HIP-2 & Assistance fund) do not produce order_status events and the order book state panics when a diff with no matching order_status is found.

This solution assumes all orders from HIP-2 & Assistance fund are Alo Limit orders without a trigger price/condition. (which I believe is always the case?)

@yangwao
Copy link

yangwao commented Mar 8, 2026

Let's merge it

yangwao added a commit to yangwao/order_book_server that referenced this pull request Mar 8, 2026
Handles special addresses (Assistance Fund 0xFE, HIP-2 0xFF) that don't
emit order_status events by creating synthetic Alo Limit order entries.
Removes the spot coin subscription filter. Opt-in via --include-spot-unsafe
CLI flag since the order type assumption is an approximation.

Cherry-picked from hyperliquid-dex#10.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

2 participants