curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01%2000:00:00"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01 00:00:00'
);
const data = await response.json();
{
"performance": [
{
"date": "2024-01-15T00:00:00Z",
"value": 1000.50,
"value_in_usd": 1000.50,
"token_distribution": {
"USDC": 1000.50
},
"accrued_rewards": {
"AAVE": {
"locked": 0.5,
"unlocked": 0.2,
"locked_value": 50.0,
"locked_value_usd": 50.0,
"unlocked_value": 20.0,
"unlocked_value_usd": 20.0
}
},
"portfolio": {
"aave": {
"value": 500.25,
"value_in_usd": 500.25
},
"compound": {
"value": 500.25,
"value_in_usd": 500.25
}
}
}
]
}
Agents
Get Performance
Get performance chart data for a wallet
GET
/
api
/
v1
/
{chain_id}
/
wallets
/
{wallet}
/
performance
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01%2000:00:00"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01 00:00:00'
);
const data = await response.json();
{
"performance": [
{
"date": "2024-01-15T00:00:00Z",
"value": 1000.50,
"value_in_usd": 1000.50,
"token_distribution": {
"USDC": 1000.50
},
"accrued_rewards": {
"AAVE": {
"locked": 0.5,
"unlocked": 0.2,
"locked_value": 50.0,
"locked_value_usd": 50.0,
"unlocked_value": 20.0,
"unlocked_value_usd": 20.0
}
},
"portfolio": {
"aave": {
"value": 500.25,
"value_in_usd": 500.25
},
"compound": {
"value": 500.25,
"value_in_usd": 500.25
}
}
}
]
}
SDK Alternative: Use
agent.performance() for a simpler TypeScript interface. See SDK docsDescription
Retrieves historical performance data for a wallet, including portfolio values and rewards over time.Path Parameters
integer
required
The blockchain chain ID
string
required
The wallet address
Query Parameters
string
default:"1970-01-01 00:00:00"
Start date for performance data (format:
YYYY-MM-DD HH:MM:SS)Response
array
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01%2000:00:00"
const response = await fetch(
'https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01 00:00:00'
);
const data = await response.json();
{
"performance": [
{
"date": "2024-01-15T00:00:00Z",
"value": 1000.50,
"value_in_usd": 1000.50,
"token_distribution": {
"USDC": 1000.50
},
"accrued_rewards": {
"AAVE": {
"locked": 0.5,
"unlocked": 0.2,
"locked_value": 50.0,
"locked_value_usd": 50.0,
"unlocked_value": 20.0,
"unlocked_value_usd": 20.0
}
},
"portfolio": {
"aave": {
"value": 500.25,
"value_in_usd": 500.25
},
"compound": {
"value": 500.25,
"value_in_usd": 500.25
}
}
}
]
}
⌘I