# TradeExecuted

**Purpose**: Emitted when a trade (swap) occurs in the pool, exchanging NFTs for tokens or tokens for NFTs.

**Key Inclusions**:

* `pool_id`: The pool where the trade happened.
* `trader`: The address executing the trade.
* `nft_amount`: Number of NFTs traded (bought or sold).
* `token_amount`: Number of tokens swapped.
* `is_buy`: Boolean indicating if the trader bought NFTs with tokens (true) or sold NFTs for tokens (false).
* `price_impact`: A measure of how this trade affected the pool’s price.
* `timestamp`: When the trade occurred.

**Use Cases**:

* Allow indexers and UIs to display real-time trade feeds.
* Help traders analyze recent market activity, trade volume, and price impact.
* Provide data for price charts, volume graphs, and other analytics tools.


---

# 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.artinals.com/artinals-protocol/trade-module/events/tradeexecuted.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.
