> For the complete documentation index, see [llms.txt](https://espresso-ex.gitbook.io/espresso-ex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espresso-ex.gitbook.io/espresso-ex/trading.md).

# Trading

At Espresso Ex, traders are offered the flexibility to select their preferred margin type for every trading pair, with the choice to use either the quote currency or the base currency as margin. It's noteworthy that selecting varying margins categorizes traders into different liquidity pools, aligning with Espresso Ex's tailored pool structure for distinct trading strategies.

Espresso Ex employs an isolated margin system for each trade, giving traders the autonomy to manage their exposure. Traders can augment their position by executing additional trades in the same direction or mitigate their risk by closing out trades or taking positions in the opposite direction. This granular control allows for precision in strategy execution and risk management, tailored to the trader's individual requirements and market outlook.


---

# 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://espresso-ex.gitbook.io/espresso-ex/trading.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.
