Skip to main content

An account's earn positions, every chain, both venue kinds

GET 

/v1/data/earn/positions

Lending accounts (one row per chain × lender, markets as legs) and vault share balances (one row each), with totals. A lender with isolated sub-accounts (Euler, Dolomite, Fluid / Jupiter Lend NFTs, Kamino obligations …) lists each in subAccounts[]: accountId is what the action routes take, label the venue's own name where it has one, accountAddress the address it acts as on chain, and unsupported — when set — why the action routes cannot build for it (a Kamino Multiply / Leverage obligation).

Every position asset (legs[].asset on lending rows, asset on vault rows) carries issuer, issuerExposures (wrappers), desk, denomination, assetClass and underlyingTicker, stamped from the token map exactly as on /v1/data/earn rows, so a holding groups under the same desk as the listing row it came from.

On a BORROW leg the asset's desk is whose money is OWED — a debt is not an exposure; group a loop by its collateral.

Plain-text reference — GET /v1/data/earn/positions

Parameters

ParameterInTypeRequiredDescription
chainIdsquerystringyesCSV of chain ids (aliases chainId, chains). See the ChainId schema for the full set of supported chains.
accountquerystringyesA 0x address (EVM chains) or a base58 pubkey (solana). Chains the account cannot exist on are dropped; none left is a 400.
venueKindquerylending, vaultnoFetch one half only.
lendersquerystringnoCSV — narrows the lending half. See the LenderId schema for the full set of accepted values.
vaultsquerystringnoCSV of vault addresses — skips vault discovery for those chains.
includeZeroquerybooleannoKeep dust and zero-share rows.

Response 200

FieldTypeDescription
successTrue
dataobjectInformational payload. null when the endpoint only builds calldata.
actionsnull

Example response

{
"success": true,
"data": {}
}

Request​

Responses​

The positions envelope: items, totals, sources, partial?, stale?. Position assets carry issuer, issuerExposures, desk, denomination.