owner, so you never need to store the account address, and neither needs a signature.
balanceslists every token the account holds or has held, with raw and formatted amounts, USD value and transfer history. Use it for balance screens and activity feeds, and to see how much is ready to withdraw.positionslists what the account has put to work (vault deposits, loans, tokenized assets), valued in USD with PnL. Use it for portfolio screens.
Two more views build on these:
GET /v2/earn/positions_all returns Earn positions on Ethereum, Base, Arbitrum and HyperEVM in one call, and GET /v2/credit/looped_positions groups leveraged loops into whole positions. Perpetual Trading has its own positions endpoint for the user’s Hyperliquid account. It returns the open positions plus account_value and withdrawable, the USDC the user can take out, so it doubles as the balance read.
Balances
Positions
deposits and withdrawals (Credit and Tokenized Assets positions have events), so you can show a full history without indexing anything yourself.
What each product returns
PnL
Earn and Tokenized Assets positions carry apnl object:
Earn reports PnL in the position’s own asset: the underlying token for vaults and Aave, and SY units for Pendle PT. Tokenized Assets reports it in USD. Credit reports
interest_earned on collateral and interest_paid on debt instead. See How Yield Accrues for how these numbers are calculated, with a worked example.
Good to know
- Amounts are strings, so they keep full precision. Parse them with a decimal library, not floats.
- USD values can be
nullwhen a token has no price. Totals only add up the priced items. - Symbols aren’t unique on-chain. If two tokens share a symbol, their keys become
SYMBOL (0xAddress). Match ontoken_addresswhen it matters. - Tokenized Assets
balancesis the full ledger. It includes tokens the account no longer holds and its USDC funding, whilepositionsonly lists what’s still held. - Pick the chain. Earn and Credit need
chain. Tokenized Assets defaults toethereum, so passbaseorbscfor holdings there.
Next
How Yield Accrues
How each position earns, how PnL is calculated, and what the APY numbers mean.