Skip to main content
GET
https://partners-backend-1038109371738.europe-west1.run.app
/
api
/
v1
/
{chain_id}
/
stats
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/stats"
{
  "total_balance": 15000000.50,
  "total_deposits": 14500000.00,
  "total_users": 1250,
  "total_transactions": 45000,
  "total_apr": 5.8,
  "liquidity_distribution": {
    "initial_deposits": [
      {"token": "USDC", "amount": 14500000}
    ],
    "current_tokens": [
      {"token": "USDC", "amount": 15000000}
    ],
    "protocols": [
      {
        "protocol": "aave",
        "balances": [{"token": "USDC", "amount": 8000000}]
      },
      {
        "protocol": "compound",
        "balances": [{"token": "USDC", "amount": 7000000}]
      }
    ]
  }
}

Description

Retrieves aggregate statistics for the Giza platform on a specific chain.

Path Parameters

chain_id
integer
required
The blockchain chain ID

Response

total_balance
number
Total balance across all agents
total_deposits
number
Total deposits across all agents
total_users
integer
Total number of active users
total_transactions
integer
Total number of transactions
total_apr
number
Average APR across all agents
liquidity_distribution
object
Distribution of liquidity across protocols
curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/stats"
{
  "total_balance": 15000000.50,
  "total_deposits": 14500000.00,
  "total_users": 1250,
  "total_transactions": 45000,
  "total_apr": 5.8,
  "liquidity_distribution": {
    "initial_deposits": [
      {"token": "USDC", "amount": 14500000}
    ],
    "current_tokens": [
      {"token": "USDC", "amount": 15000000}
    ],
    "protocols": [
      {
        "protocol": "aave",
        "balances": [{"token": "USDC", "amount": 8000000}]
      },
      {
        "protocol": "compound",
        "balances": [{"token": "USDC", "amount": 7000000}]
      }
    ]
  }
}