Skip to main content
POST
Get account balance
This is a read that uses POST with a JSON body. Unlike positions and orders, it accepts exactly one provider: pass providerId, or a providerIds array with a single entry. Two different providers return 400. Returns one object, not an array. All amounts are denominated in the collateral token. unifiedAccountMode is present only for providers that support it.

Authorizations

x-api-key
string
header
required

Body

application/json
address
string
required

User wallet address

Example:

"0x1234..."

providerId
enum<string>

Single provider identifier. At least one of providerId or providerIds must be provided.

Available options:
hyperliquid,
hyperliquid-xyz
Example:

"hyperliquid"

providerIds
enum<string>[]

Single provider only (one CSV value, one repeated param, or a one-element JSON array). At least one of providerId or providerIds must be provided. Must not combine with a different providerId.

Maximum array length: 1
Available options:
hyperliquid,
hyperliquid-xyz
Example:

Response

Account balance

providerId
string
required

Provider ID

Example:

"hyperliquid"

collateral
object
required

Collateral token (all values denominated in this token)

accountValue
number
required

Total account value in collateral asset

Example:

1280.44

usedMargin
number
required

Margin used by positions in collateral asset

Example:

320.13

availableBalance
number
required

Available balance for new positions in collateral asset

Example:

960.31

unrealizedPnl
number
required

Total price PnL across all positions in collateral asset (excludes funding)

Example:

12.8

unifiedAccountMode
boolean

Whether the account currently has Unified Account Mode enabled (collateral unified across venues). Only present for providers that support it (Hyperliquid).

Example:

false