Skip to main content
GET
/
v2
/
earn
/
positions_all
Python (SDK)
from compass_api_sdk import CompassAPI


with CompassAPI(
    api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:

    res = compass_api.earn.earn_positions_all(owner="0x01E62835dd7F52173546A325294762143eE4a882")

    # Handle response
    print(res)
{
  "chains": {},
  "total_usd_value": "<string>"
}

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Query Parameters

owner
string
default:0x01E62835dd7F52173546A325294762143eE4a882
required

The address of the owner of the earn account.

Response

Successful Response

Positions across all chains, grouped by chain name.

Each chain key maps to an EarnPositionsResponse containing that chain's aave, vaults, and pendle_pt positions with per-chain total_usd_value.

chains
Chains · object
required

Positions grouped by chain. Keys: 'ethereum', 'base', 'arbitrum'.

total_usd_value
string | null

Total USD value of all positions across all chains.