portfolioState | Hyperliquid Info API
Info API
portfolioState | Hyperliquid Info API
Hyperliquid portfolioState: fetch a wallet’s perp state, spot balances, and account-abstraction mode in one request.
POST
portfolioState | Hyperliquid Info API
Credit Cost
1 per call
Processing
Realtime
type: "portfolioState" is used to fetch a wallet’s perp clearinghouse state, spot balances, and account-abstraction mode in a single request.
- GoldRush-native composite — not part of the original Hyperliquid API. It bundles three upstream calls into one round-trip: clearinghouseState, spotClearinghouseState, and
userAbstraction. - Pass
dexto scope the perpclearinghouseStateto a single HIP-3 DEX. Passdex: "ALL_DEXES"to return the perp state across the native DEX plus every HIP-3 DEX in one call, keyed by DEX name. spotClearinghouseStateanduserAbstractionare DEX-independent and always returned once.
clearinghouseState), spot balances (spotClearinghouseState), and account-abstraction mode (userAbstraction) — the three calls a portfolio view typically needs, in one round-trip.
Endpoint
Request
string
default:"portfolioState"
required
Always
"portfolioState".string
required
Ethereum address (0x-prefixed, 42 characters).
string
Perp DEX name. Omit for the native DEX (default). Use
"ALL_DEXES" to fetch the perp clearinghouseState across the native DEX plus every HIP-3 DEX in one call.Example
Response
An object with three keys — the perp clearinghouse state, spot clearinghouse state, and the account-abstraction mode.Field descriptions
object
The wallet’s perp account state — identical to the standalone
clearinghouseState response (marginSummary, crossMarginSummary, assetPositions, time). Scoped to dex when supplied; a per-DEX object when dex: "ALL_DEXES" (see below).object
The wallet’s spot balances.
string
The wallet’s account-abstraction mode. One of:
ALL_DEXES response
When dex: "ALL_DEXES" is passed, clearinghouseState becomes an object keyed by DEX name — the native DEX under "native" plus one key per HIP-3 DEX. spotClearinghouseState and userAbstraction are unchanged.