The examples on this page use Hyperliquid (
provider: 'hyperliquid'). Replace the provider value with any supported DEX from getProviders().Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
client | PerpsSDKClient | Yes | SDK client from createPerpsClient() |
params.provider | string | Yes | DEX identifier |
params.address | string | Yes | User’s wallet address |
options | SDKRequestOptions | No | Request options |
Returns
AccountResponse:
| Field | Type | Description |
|---|---|---|
provider | string | Provider identifier |
address | string | User’s wallet address |
balances | Record<string, Balance[]> | Account balances grouped by venue (e.g., "perps", "spot") |
marginUsed | string | Margin currently in use |
unrealizedPnl | string | Total unrealized PnL |
feeTier | FeeTier | Maker and taker fee rates |
config | object | DEX-specific account configuration (agent status, builder fee, etc.) |
Positions and orders are fetched separately via
getPositions() and getOrders().