Skip to main content
GET
Python (SDK)

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

chain
enum<string>
default:base
required
Available options:
arbitrum,
base,
bsc,
ethereum,
tempo
owner
string
default:0x06A9aF046187895AcFc7258450B15397CAc67400
required

The address of the owner of the earn account to get positions for.

Response

Successful Response

Grouped positions by protocol.

This new structure groups positions by protocol type for better organization and removes the need for a discriminated union in SDK consumers.

aave
AavePosition · object[]

Aave V3 lending positions.

Example:
vaults
VaultPosition · object[]

ERC-4626 vault positions.

Example:
pendle_pt
PendlePTPosition · object[]

Pendle Principal Token positions.

Example:
total_usd_value
string | null

Total USD value of all positions (sum of available values).