# 2.2. How does it work?

{% stepper %}
{% step %}

### Pre-trade (Analysis and Opportunity Discovery)

* Market analysis: scanning spot and futures markets to identify patterns, liquidity anomalies, and fundamental signals.
* Personalized recommendations: generating a customized idea feed based on the user’s trading history and preferences.
  {% endstep %}

{% step %}

### Trade (Execution)

* Intelligent routing: calculating optimal execution paths to minimize slippage and commissions.
* Yield routing: real-time portfolio optimization that accounts for interest rates, volatility, liquidity, and asset correlations.
* Stealth Execution & MEV Protection: hidden execution via mempool analysis and the use of private nodes.
  {% endstep %}

{% step %}

### Post-trade (Position and Risk Management)

* Risk monitoring: tracking positions across protocols and issuing liquidation warnings.
* Automated rebalancing: dynamically reallocating assets across protocols to maximize yield and risk-adjusted returns.
  {% endstep %}
  {% endstepper %}


---

# 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://flipper-3.gitbook.io/flipper-docs/2.2.-how-does-it-work.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.
