# Index Performance

Our system regularly updates each index’s value to reflect the latest market conditions. This involves calculating the total market cap of top tokens in the index, recording this information, and tracking how the index’s value changes over time, including daily performance.

#### 1. Calculating Initial and Current Market Cap

Each index starts with a **baseline market cap**, which is the total market cap when we first calculated it. This baseline is our starting point for tracking changes over time.

For each update, we calculate the **current market cap** by adding up the market caps of the top 10 tokens in the index (those with the highest individual market caps).

We then determine the **current index value** by comparing the current market cap to the baseline. This shows how much the index has grown or shrunk relative to its starting point.

**Formula in Simple Terms**:

$$
\text{Current Index Value} = \left( \frac{\text{Current Market Cap}}{\text{Baseline Market Cap}} \right) \times 1000
$$

Here, 1000 is our chosen starting value to make the numbers easy to understand.

#### 2. Saving Historical Data

After calculating the current index value, we save it along with the current market cap and the list of top tokens. Each update records these values, allowing us to see how the index changes over time.

#### 3. Updating All Indexes Regularly

To keep everything current, our system goes through each index and calculates its value based on the latest market data. This ensures every index is updated to reflect the latest conditions.

#### 4. Calculating 24-Hour Performance

To give users insights into short-term trends, we also calculate **24-hour performance**. This metric shows how much an index has changed in value over the past day.

Here’s how it works:

1. **Today’s Value**: We get the latest index value.
2. **Yesterday’s Value**: We look up the index value from 24 hours ago.
3. **Calculate Change**: If we have a value from 24 hours ago, we calculate the percentage change from yesterday to today.

   **Formula in Simple Terms**:

$$
\text{24-Hour Performance} = \left( \frac{\text{Today’s Value} - \text{Yesterday’s Value}}{\text{Yesterday’s Value}} \right) \times 100
$$

1. **Save Performance Data**: We save this 24-hour performance, so it’s easy to track how each index has moved over the last day.

#### Why This Matters

This process keeps the indexes updated based on market trends, showing both long-term growth and daily changes. Users can see the growth of the index over time, along with short-term fluctuations, helping them make better-informed decisions.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.solindex.xyz/products/indexes/index-performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
