Skip to content

Add dex parameter to user_fills, user_fills_by_time, meta_and_asset_ctxs - #310

Open
takinanton wants to merge 1 commit into
hyperliquid-dex:masterfrom
takinanton:add-dex-param-fills-metactxs
Open

Add dex parameter to user_fills, user_fills_by_time, meta_and_asset_ctxs#310
takinanton wants to merge 1 commit into
hyperliquid-dex:masterfrom
takinanton:add-dex-param-fills-metactxs

Conversation

@takinanton

Copy link
Copy Markdown

user_state, open_orders, all_mids, and meta all take an optional dex
parameter for HIP-3 builder-deployed perp dexes. user_fills,
user_fills_by_time, and meta_and_asset_ctxs did not, so callers
tracking fills or asset metadata on a HIP-3 dex had no way to scope
the request.

This adds dex: str = "" to all three, following the exact pattern
already used elsewhere in Info, so default behavior (main dex) is
unchanged for existing callers.

Closes #278, #287

These three Info methods were the last holdouts without a dex parameter
for HIP-3 builder-deployed perp dexes, while user_state, open_orders,
all_mids, and meta already support it. Defaults to "" (the first/main
dex) so existing callers are unaffected.

Closes hyperliquid-dex#278, hyperliquid-dex#287
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.

Info.meta_and_asset_ctxs() has no dex input

1 participant