# Contextualized Data

Aggregations are how LYS transforms decoded blockchain data into intelligent insights.Once raw blockchain data is parsed by our decoders, we immediately begin tracking structured metrics - both in real-time and across historical timeframes. These aggregated views power trading strategies, research dashboards, alerts, and AI agents.

### Why aggregations matter

* Raw data tells you what happened.
* Decoders tell you what kind of event it was.
* Aggregations tell you what it means.

\
For example:

* A swap by a whale on Raydium becomes a price spike alert if it's the largest transaction in the last 5 minutes.

{% hint style="info" %}
Aggregations make the data *actionable*.
{% endhint %}

### Two types of aggregations

| **Type**   | **Description**                                                     |
| ---------- | ------------------------------------------------------------------- |
| Real-Time  | Computed live as new events stream in - for alerts, agents, bots    |
| Historical | Computed across stored data - for research, backtesting, dashboards |


---

# 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.lyslabs.ai/contextualized-data.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.
