From 2ddc2a911eac472723e6ecde3dc8240885d345a8 Mon Sep 17 00:00:00 2001 From: mifth Date: Sun, 29 Mar 2026 21:08:16 +0200 Subject: [PATCH] Add dex parameter to meta_and_asset_ctxs() Issue: https://github.com/hyperliquid-dex/hyperliquid-python-sdk/issues/278 API refererence where the "metaAndAssetCtxs" has the "dex" input: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint/perpetuals#retrieve-perpetuals-asset-contexts-includes-mark-price-current-funding-open-interest-etc --- hyperliquid/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyperliquid/info.py b/hyperliquid/info.py index a86ac80..18d1cc7 100644 --- a/hyperliquid/info.py +++ b/hyperliquid/info.py @@ -286,7 +286,7 @@ def meta(self, dex: str = "") -> Meta: """ return cast(Meta, self.post("/info", {"type": "meta", "dex": dex})) - def meta_and_asset_ctxs(self) -> Any: + def meta_and_asset_ctxs(self, dex: str = "") -> Any: """Retrieve exchange MetaAndAssetCtxs POST /info @@ -319,7 +319,7 @@ def meta_and_asset_ctxs(self) -> Any: ... ] """ - return self.post("/info", {"type": "metaAndAssetCtxs"}) + return self.post("/info", {"type": "metaAndAssetCtxs", "dex": dex}) def perp_dexs(self) -> Any: return self.post("/info", {"type": "perpDexs"})