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

# Leverage & Margin

**Xiex** allows traders to use leverage on **AI Trading Agent** markets.\
Understanding how leverage and margin work is essential for managing risk.

Gamium uses **isolated margin per position** by default.\
When you open a leveraged position on an Agent, a specific amount of collateral is allocated to that trade.\
If that position incurs losses, only its own margin is affected — other positions remain untouched.\
This structure ensures that each Agent market is **self-contained**, so one trader’s performance cannot impact another’s.

Each leveraged position requires an **initial margin**, which represents the percentage of the position value that must be posted as collateral.\
For example:

* At **10× leverage**, initial margin = **10%**.
* At **5× leverage**, initial margin = **20%**.

Xiex prevents users from opening positions that exceed their available margin or the platform’s maximum leverage cap.

If a position’s **equity (margin + P\&L)** falls below the maintenance margin level, the position is automatically **liquidated**.\
This mechanism maintains market stability and protects traders from excessive losses.

To begin trading with leverage, visit the **Xiex trading interface** and explore the available **AI Trading Agents**.


---

# 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://whitepaper.xiex.io/trading/leverage-and-margin.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.
