Skip to main content
Returns an address’s earnings in one vault: the return to date, the return for a period, claimable rewards, and the position’s current value. Earnings depend on third-party tracking and may be unavailable, especially for a new position. A missing field means the value is unavailable, never zero. An unknown vaultId returns 404.

Path Parameters

string
required
The vault identifier from discovery.
string
required
The end user’s wallet, as a 20-byte 0x hex address.

Query Parameters

string
default:"lifetime"
lifetime, 7d, 30d or custom. Defaults to lifetime.
string
Required with period=custom. An RFC 3339 timestamp with whole seconds, such as 2026-11-01T00:00:00Z. Sending start or end with any other period returns 400.
string
Optional with period=custom. An RFC 3339 timestamp with whole seconds.
The TypeScript and Python examples use the earn() helper from Call the API.

Response Fields

boolean
false when there is no earnings data for this address and vault.
object
The position’s return since the first deposit, as an amount.
object
The return for the requested period. Absent for lifetime.
array
Rewards the address can claim now, as amounts.
object
The position’s current value, as an amount.
string
When the earnings data was fetched, as an RFC 3339 timestamp.

Amounts

Each amount is an object with these fields:
object
The token’s address, symbol and decimals.
string
The amount in the token’s atomic units. It can be negative.
string
The amount in USD. Absent when no price is available.