# Routing

Once the user enters the details of a trade in LogX, the LogX Router automatically routes the user to the best exchange to execute the trade in.&#x20;

The logX router uses the following factors to determine the best route for the user -

1. Price - The price of the underlying the user wants to enter a position into
2. Fixed Fees - The amount of fees the user has to pay in order to enter / exit a position with an exchange

We are continuously improving our routing algorithm to give the best possible trading experience for the users. Soon, we will include Variable Fees (Funding / Borrow Fees) as a factor in calculating the best exchange to route a trade.


---

# 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://logx-1.gitbook.io/logx-docs/logx-aggregator/functional-guide/routing.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.
