# Execution Layer

The execution layer is optimized for low latency and gas efficiency, ensuring that AI-generated decisions are acted upon swiftly and reliably.

* **WebSocket & RPC Routers**: Handle real-time event ingestion and trade signal dispatch with ultra-low latency, ensuring traders enter positions ahead of slower bots.
* **Gas-Optimized Transaction Builder**: Dynamically constructs transactions based on the latest fee markets and user-defined preferences, balancing speed and cost.

Whether executing a snipe trade, rebalancing a liquidity position, or managing a stop-loss, this layer provides dependable execution in volatile market conditions.


---

# 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://selen-ai.gitbook.io/selen-ai/execution-layer.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.
