> For the complete documentation index, see [llms.txt](https://docs.jayx.com/jayx-docs-n8rfmgwto77q5ila/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jayx.com/jayx-docs-n8rfmgwto77q5ila/solutions/dapp/exchange-nodes/key-functions-of-the-exchange-node.md).

# Key Functions of the Exchange Node

1. **Interacting with Users:** The exchange node serves as the primary interface for users to submit their trading orders and inquiries, ensuring user commands are accurately captured and processed.
2. **Maintaining the Order Book:** It is responsible for keeping an updated ledger of buy and sell orders, known as the order book. This includes recording new orders, updates, and cancellations, providing a real-time snapshot of market activity.
3. **Matching Orders:** The node matches buy and sell orders based on trading criteria such as price and quantity. This involves pairing compatible buy and sell orders to execute trades.
4. **Sending Settlements:** Once orders are matched, the exchange node facilitates the settlement process, ensuring the transfer of assets between the trading parties in accordance with the matched orders.
5. **Relaying Messages to Different Chains:** It plays a critical role in cross-chain interoperability by relaying messages and transactions to other blockchain networks, enabling trading activities across different blockchain environments.
6. **Acting as an Oracle:** The node can function as an oracle, fetching and verifying data from external sources to be used within the blockchain, such as market prices or event outcomes.

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.jayx.com/jayx-docs-n8rfmgwto77q5ila/solutions/dapp/exchange-nodes/key-functions-of-the-exchange-node.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.
