Skip to main content
POST
portfolioState | Hyperliquid Info API

Credit Cost

1 per call

Processing

Realtime
The Hyperliquid info endpoint with type: "portfolioState" is used to fetch a wallet’s perp clearinghouse state, spot balances, and account-abstraction mode in a single request.
Estimate your monthly cost for this API using the Pricing Calculator.
  • GoldRush-native composite — not part of the original Hyperliquid API. It bundles three upstream calls into one round-trip: clearinghouseState, spotClearinghouseState, and userAbstraction.
  • Pass dex to scope the perp clearinghouseState to a single HIP-3 DEX. Pass dex: "ALL_DEXES" to return the perp state across the native DEX plus every HIP-3 DEX in one call, keyed by DEX name.
  • spotClearinghouseState and userAbstraction are DEX-independent and always returned once.
Returns a single object bundling a wallet’s perp account state (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.
Last reviewed: 2026-07-30