baseUrl override and adding an Authorization header.
JavaScript / TypeScript: nomeida/hyperliquid
Install
Configure
If your SDK version doesn’t expose a
headers option, wrap fetch to inject the header globally before instantiating the SDK. See the patch pattern below.Header injection fallback
Python: hyperliquid-dex/hyperliquid-python-sdk
Install
Configure
Verification
After cutover, confirm everything is wired correctly:- Diff a known wallet - call
clearinghouseStatefor the same wallet against both endpoints; the JSON shape (keys, nesting, types) should match exactly. - Confirm auth - remove the API key and confirm you get a
401with body{"error":"unauthorized"}. If you get any other response, your request isn’t reaching GoldRush.
Other SDKs
The pattern is the same for any HTTP client: override the base URL tohttps://hypercore.goldrushdata.com and attach Authorization: Bearer <GOLDRUSH_API_KEY>. If you run into a specific SDK that doesn’t expose either knob, email us - we’ll publish a recipe.