Skip to content

docs: document the dex HIP-3 parameter in Info docstrings (closes #286) - #320

Open
massimiliano1991 wants to merge 1 commit into
hyperliquid-dex:masterfrom
massimiliano1991:docs-hip3-dex-param
Open

docs: document the dex HIP-3 parameter in Info docstrings (closes #286)#320
massimiliano1991 wants to merge 1 commit into
hyperliquid-dex:masterfrom
massimiliano1991:docs-hip3-dex-param

Conversation

@massimiliano1991

Copy link
Copy Markdown

Closes #286.

Info.user_state, open_orders, frontend_open_orders, all_mids and meta all accept dex: str = "" and forward it to the API, but none of them mention it in the docstring Args, so HIP-3 (builder-deployed perp) support is only discoverable by reading the source. As @keitaj noted in #286, a common mistake is calling info.open_orders(addr) and wondering why HIP-3 orders are missing.

This adds dex to the Args of each of the five methods. all_mids and meta had no Args section, so a minimal one is introduced with just dex.

Scope: docstring only, no behaviour change — the parameter already existed and was already forwarded. python -m py_compile hyperliquid/info.py passes; the diff is 12 added lines across the five methods.

user_state, open_orders, frontend_open_orders, all_mids and meta all accept
`dex: str = ""` and forward it to the API, but the Args section never mentions
it, so HIP-3 support is only discoverable by reading the source. Add the
parameter to each docstring; all_mids and meta had no Args section, so one is
introduced with just `dex`.

Docstring only, no behaviour change. Closes hyperliquid-dex#286.
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.

HIP-3 dex parameter missing from docstrings for user_state, open_orders, all_mids

1 participant