# Real-time aggregations

## **Common Strategies Built on Real-Time Aggregations**

**Strategy 1: ATH Breakout**

* Check if token is legit
* Check if price < last ATH
* If price breaks ATH → buy
* Add a trailing stop-loss for exit

\
**Strategy 2: Volume Spike Momentum**

* Token legitimacy check
* Look for large volume spike
* Check price above 15-min MA
* If 2 & 3 are met → buy
* Exit via dynamic stop-loss
* Technical indicators like MAs can be derived using live moving windows.

### **Real-Time metrics we provide**

| **Metric**             | Description                                                  |
| ---------------------- | ------------------------------------------------------------ |
| Price Spike            | Token's current price > recent average or local maximum      |
| ATH                    | Detect all-time high + price value match                     |
| Local ATH              | Rolling peak over user-defined block count (e.g., 10 blocks) |
| Volume (X/Y/Z)         | Volume (count & value) across 1m, 5m, 15m sliding windows    |
| Volume Spike           | Detect sudden jump from rolling average                      |
| Buy/Sell Ratio         | % buy/sell count or volume per token/window                  |
| Dev Pre-Sell Detection | Tracks buys & sells prior to known dev wallet exit           |


---

# 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/real-time-aggregations.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.
