Skip to main content
GET
Get wallet fungible positions by ecosystem

Authorizations

Authorization
string
header
required

To test endpoints here, paste your API key from the Dashboard into the username field and leave the password empty.

Headers

X-Env
enum<string>

Set to testnet to return testnet data instead of mainnet.

Available options:
testnet

Path Parameters

ecosystem
enum<string>
required

The ecosystem of the wallet address: eip155 for EVM chains (evm is an alias of it), or solana. The endpoint serves only chains of this ecosystem. An unknown ecosystem returns 404.

Available options:
eip155,
evm,
solana
address
required

The wallet address, valid for the ecosystem in the path: a 0x EVM address for eip155 or evm, a Solana address for solana. The ecosystem is not inferred from the address, so an address of another ecosystem returns 400, for example wallet address must be a valid Solana address. Under eip155 and evm the zero address returns 400. The transactions, balance chart and PnL endpoints additionally require an address Zerion tracks, as they do on /v1/wallets/{address}/ paths. An EVM address that is not tracked, such as a token contract, router or exchange hot wallet, returns 400, with detail reading untrackable wallet address on transactions and balance charts. Solana addresses always count as tracked. Ethereum-compatible address (EVM).

Pattern: ^0x[a-fA-F0-9]{40}$
Example:

"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"

Query Parameters

filter[exclude_fungible_ids]
string[]

Exclude these token IDs from positions and portfolio calculations (comma-separated list). Defaults to no exclusions. For example, eth,usd-coin excludes ETH and USDC contributions represented in the positions. An opaque receipt token does not identify its underlying assets.

Repeated parameters are combined. The maximum is 500 entries before removing empty entries and duplicates; both count toward the limit. An empty value has no effect. Unknown valid IDs have no effect. Nonempty IDs must contain 3 to 100 letters, digits, dots, underscores or hyphens. Invalid IDs, malformed URL encoding or more than 500 entries return 400.

On positions endpoints, filter[fungible_ids] can be combined with this filter: a token must be included and not excluded to remain. Chart endpoints retain their separate 25-ID limit and reject combining inclusion and exclusion.

Maximum array length: 500
Maximum string length: 100
Pattern: ^([A-Za-z0-9._-]{3,100})?$
Example:
filter[positions]
enum<string>
default:only_simple

Which positions to return. Defaults to only_simple.

  • only_simple - tokens and native coins held directly in the wallet. DeFi protocol positions are left out.
  • only_complex - DeFi protocol positions only, such as staked assets and liquidity pools (for example Uniswap or Aave).
  • no_filter - both simple and protocol positions. A share token that a returned protocol position carries as receipt can be left out as its own wallet row. So no_filter can return fewer rows than only_simple and only_complex combined, and some share tokens still appear twice. See Deduplicating share tokens.

Note: only_complex and no_filter count as advanced requests. Advanced requests have their own, smaller quota within your plan, and once it's used up these requests return 429 even if your overall quota has room. Check your plan's advanced quota in the Dashboard, or contact api@zerion.io for a different plan.

Available options:
only_simple,
only_complex,
no_filter
currency
enum<string>
default:usd

Denominated currency value of returned prices

Available options:
eth,
btc,
usd,
eur,
krw,
rub,
gbp,
aud,
cad,
inr,
jpy,
nzd,
try,
zar,
cny,
chf
filter[position_types]
(enum<string> | null)[]

Keep only positions with these types (comma-separated list).

Possible values:

  • deposit - Assets deposited into a DeFi protocol (e.g., supplied to lending pools, deposited in vaults, or provided as liquidity)
  • loan - Borrowed assets representing a debt position that needs to be repaid
  • locked - Assets locked for a specific period or purpose (e.g., vote-escrowed tokens, time-locked tokens)
  • staked - Assets staked in a protocol to earn rewards, participate in consensus, or for governance purposes
  • reward - Earned rewards that are claimable or have been distributed but not yet withdrawn
  • wallet - Regular assets held directly in the wallet, not actively deposited in any protocol
  • investment - Investment positions such as tokenized funds, indices, or structured products
Maximum array length: 8

Position's type indicating how the assets are being used or their current state.

Available options:
deposit,
loan,
locked,
staked,
reward,
wallet,
investment
filter[chain_ids]
string[]

Keep only positions from these chains (comma-separated list). A listed chain is used only when it reports supports_positions in the flags of GET /v1/chains/ and belongs to the network family of the wallet address; on /v1/{ecosystem}/wallets/ paths that family is the path's ecosystem. A listed chain that fails either rule is ignored when the list also names a chain that passes both. When no listed chain passes, the request returns 400 rather than an empty result, and detail names the first chain in the list, as chain <id> does not support positions (for example chain bob does not support positions), or chain <id> does not support this wallet address type when that chain reports that flag but is of another network family. When the filter is omitted, chains that fail either rule are left out of data silently, with no error and no meta signal.

Maximum array length: 25
Example:
filter[fungible_ids]
string[]

Keep only positions for these fungible IDs (comma-separated list).

Maximum array length: 25
Maximum string length: 44
filter[dapp_ids]
string[]

Keep only positions from these dapps (comma-separated list of dapp IDs).

Maximum array length: 25
Required string length: 1 - 32
Example:
filter[trash]
enum<string>
default:only_non_trash

Filter positions by the is_trash spam flag. Defaults to only_non_trash, which leaves spam positions out.

Available options:
only_trash,
only_non_trash,
no_filter
sort
enum<string>
default:value

Sort by position value. Defaults to value, which puts the highest value first. Use -value for lowest first.

Available options:
-value,
value

Response

Response for requested list of positions

data
object[]
required