> For the complete documentation index, see [llms.txt](https://docs.lyslabs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lyslabs.ai/contextualized-data.md).

# 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 |
