Skip to main content
Returns the account summary for a DEX including balances, margin, and fee tier.
The examples on this page use Hyperliquid (provider: 'hyperliquid'). Replace the provider value with any supported DEX from getProviders().

Parameters

Returns

AccountResponse: Each Balance:
The positions array mirrors the unfiltered getPositions() output. Orders are fetched separately via getOrders().

PerpsClient.getAccount

The PerpsClient method wraps the standalone getAccount and additionally resolves the account’s setting descriptors. It returns a GetAccountResult — every AccountResponse field plus a settings array.

PerpsClient.getAccountSummary

Derives portfolio-level totals from an already-fetched account snapshot and its positions. Pure computation — makes no network request.
Returns: AccountSummary:

accountExists

Thin existence check for a provider account at address — useful for gating signing-mode or onboarding flows on whether the user has any account state with the provider yet.
Returns: Promise<boolean>true when getAccount resolves, false when the backend reports PerpsErrorCode.AccountNotFound. Any other error (transport, validation, server) is re-thrown. API Reference: GET /account