clearinghouseState
Info API
clearinghouseState
Commonly used to fetch a single user’s perpetuals account state by wallet address.
POST
clearinghouseState
Documentation Index
Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
Credit Cost
1 per call
Processing
Realtime
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "clearinghouseState", "user": "..."}. - For real-time push instead of polling, subscribe to
walletTxswith the same wallet address. - The optional
dexfield returns state on a HIP-3 deployer’s perp DEX.
Endpoint
Request
Always
"clearinghouseState".The wallet address (lowercase 0x-prefixed hex).
HIP-3 builder DEX identifier. Empty string (default) returns canonical Hyperliquid perp state. Pass a builder code to query a HIP-3 deployer’s perp DEX.
Example
Response
Field descriptions
All numeric fields below (account value, position size, prices, funding amounts, etc.) are returned as decimal strings, preserving upstream precision. Do not parse them as floats - keep them as strings or use a fixed-precision decimal type.
Top-level account margin and value summary.
Cross-margin subset of the margin summary. Same fields.
Maintenance margin currently used for cross positions.
Amount currently withdrawable, in USD.
Open positions, one entry per coin.
Snapshot timestamp in milliseconds since Unix epoch.