From 44952dabe82a45047a202bd9d5727bf394b38059 Mon Sep 17 00:00:00 2001 From: claygeo Date: Fri, 19 Jun 2026 10:03:02 -0400 Subject: [PATCH] docs: document HIP-3 dex parameter on Info query methods Add the missing `dex` parameter to the Args docstrings of user_state, open_orders, frontend_open_orders, all_mids, and meta -- the five Info methods that already accept and forward a `dex` argument for HIP-3 builder-deployed perpetuals. Improves discoverability of HIP-3 support. Fixes #286. --- hyperliquid/info.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hyperliquid/info.py b/hyperliquid/info.py index 360d058..9b7fe8d 100644 --- a/hyperliquid/info.py +++ b/hyperliquid/info.py @@ -91,6 +91,8 @@ def user_state(self, address: str, dex: str = "") -> Any: Args: address (str): Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. + dex (str): Perp dex name for HIP-3 builder-deployed perpetuals. + Defaults to "" (the first perp dex). Returns: { assetPositions: [ @@ -138,6 +140,8 @@ def open_orders(self, address: str, dex: str = "") -> Any: Args: address (str): Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. + dex (str): Perp dex name for HIP-3 builder-deployed perpetuals. + Defaults to "" (the first perp dex). Returns: [ { coin: str, @@ -159,6 +163,8 @@ def frontend_open_orders(self, address: str, dex: str = "") -> Any: Args: address (str): Onchain address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000. + dex (str): Perp dex name for HIP-3 builder-deployed perpetuals. + Defaults to "" (the first perp dex). Returns: [ { children: @@ -189,6 +195,10 @@ def all_mids(self, dex: str = "") -> Any: POST /info + Args: + dex (str): Perp dex name for HIP-3 builder-deployed perpetuals. + Defaults to "" (the first perp dex). + Returns: { ATOM: float string, @@ -275,6 +285,10 @@ def meta(self, dex: str = "") -> Meta: POST /info + Args: + dex (str): Perp dex name for HIP-3 builder-deployed perpetuals. + Defaults to "" (the first perp dex). + Returns: { universe: [