> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gizatech.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Performance

> Get performance chart data for a wallet

<Note>
  **SDK Alternative**: Use `agent.performance()` for a simpler TypeScript interface. [See SDK docs](/sdk-reference/agent/monitoring)
</Note>

## Description

Retrieves historical performance data for a wallet, including portfolio values and rewards over time.

## Path Parameters

<ParamField path="chain_id" type="integer" required>
  The blockchain chain ID
</ParamField>

<ParamField path="wallet" type="string" required>
  The wallet address
</ParamField>

## Query Parameters

<ParamField query="from_date" type="string" default="1970-01-01 00:00:00">
  Start date for performance data (format: `YYYY-MM-DD HH:MM:SS`)
</ParamField>

## Response

<ResponseField name="performance" type="array">
  Array of performance data points

  <Expandable>
    <ResponseField name="date" type="string">
      ISO date timestamp
    </ResponseField>

    <ResponseField name="value" type="number">
      Portfolio value in token units
    </ResponseField>

    <ResponseField name="value_in_usd" type="number">
      Portfolio value in USD
    </ResponseField>

    <ResponseField name="token_distribution" type="object">
      Distribution of tokens in portfolio
    </ResponseField>

    <ResponseField name="accrued_rewards" type="object">
      Accrued rewards by token
    </ResponseField>

    <ResponseField name="portfolio" type="object">
      Protocol allocations
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://partners-backend-1038109371738.europe-west1.run.app/api/v1/8453/wallets/0x.../performance?from_date=2024-01-01%2000:00:00"
  ```

  ```javascript JavaScript theme={null}
  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();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "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
          }
        }
      }
    ]
  }
  ```
</ResponseExample>
