Skip to main content
Each product has two read endpoints for its account. Both take the user’s wallet address as owner, so you never need to store the account address, and neither needs a signature.
  • balances lists 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.
  • positions lists 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

The response, shortened to one token and one transfer:

Positions

The response, shortened to one vault position:
Each Earn position also lists its 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 a pnl 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 null when 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 on token_address when it matters.
  • Tokenized Assets balances is the full ledger. It includes tokens the account no longer holds and its USDC funding, while positions only lists what’s still held.
  • Pick the chain. Earn and Credit need chain. Tokenized Assets defaults to ethereum, so pass base or bsc for holdings there.

Next

How Yield Accrues

How each position earns, how PnL is calculated, and what the APY numbers mean.