> For the complete documentation index, see [llms.txt](https://docs.txflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.txflow.com/perp/accounts-and-margin.md).

# Accounts and Margin

### Collateral

TxFlow uses `USDC` as the sole collateral asset for all positions.

### Margin modes

When opening a position, choose one of two margin modes:

<table><thead><tr><th width="148.45703125">Mode</th><th width="353.33984375">How It Works</th><th width="266.28515625">Best For</th></tr></thead><tbody><tr><td><strong>Cross Margin</strong></td><td>All cross-margin positions share a single collateral pool, maximizing capital efficiency. Unrealized PnL from one position can offset losses in another.</td><td>Experienced traders managing multiple positions</td></tr><tr><td><strong>Isolated Margin</strong></td><td>Collateral is dedicated to a single position. Liquidation in one isolated position does <strong>not</strong> affect other positions.</td><td>Limiting risk on high-leverage or speculative trades</td></tr></tbody></table>

### Initial margin and leverage

Leverage lets you control a larger position with less capital. You can select leverage up to the maximum allowed for each asset (see [Margin Tiers](/perp/trading-rules/margin-tiers.md)).

\
**Initial Margin** is the collateral required to open a position:

<table><thead><tr><th width="164.05859375">Mode</th><th width="556.09375">Formula</th></tr></thead><tbody><tr><td>Cross Margin</td><td>Initial Margin = Position Size × Mark Price ÷ Leverage</td></tr><tr><td>Isolated Margin</td><td>Initial Margin = Position Size × Mark Price ÷ Leverage</td></tr></tbody></table>

Once open:

* Initial margin is locked and cannot be withdrawn until the position is closed.
* **Isolated positions:** You can manually add margin to reduce liquidation risk.
* **Cross positions:** Unrealized PnL automatically contributes to your total margin balance.

### Maintenance margin and liquidations

**Maintenance Margin** is the minimum collateral required to keep a position open. If your equity drops below this level, your position may be **liquidated**.

```
Maintenance Margin = Position Notional × MMR 
```

<table><thead><tr><th width="157.69921875">Margin Mode</th><th width="576.18359375">Liquidation Trigger</th></tr></thead><tbody><tr><td><strong>Cross Margin</strong></td><td>Account value (including unrealized PnL across all cross positions) falls below total maintenance margin requirement</td></tr><tr><td><strong>Isolated Margin</strong></td><td>That position's margin falls below its individual maintenance margin requirement</td></tr></tbody></table>

### Cross vs. isolated — key differences

<table><thead><tr><th width="194.94140625">Feature</th><th width="270.05859375">Cross Margin</th><th width="272.18359375">Isolated Margin</th></tr></thead><tbody><tr><td>Collateral</td><td>Shared across all cross positions</td><td>Dedicated to single position</td></tr><tr><td>Unrealized PnL</td><td>Offsets other positions</td><td>Only affects that position</td></tr><tr><td>Liquidation impact</td><td>Can affect all cross positions</td><td>Limited to that position only</td></tr><tr><td>Add margin manually</td><td>No (automatic via shared pool)</td><td>Yes</td></tr><tr><td>Capital efficiency</td><td>Higher</td><td>Lower</td></tr><tr><td>Risk management</td><td>Shared risk</td><td>Contained risk</td></tr></tbody></table>

{% hint style="warning" %}
**High leverage amplifies both gains and losses.** A small price movement can result in significant losses or complete liquidation of your position. Only trade with funds you can afford to lose.
{% endhint %}

### Related Pages

<table><thead><tr><th width="225.91796875">Pages</th><th width="502.671875">Description</th></tr></thead><tbody><tr><td><a href="/pages/scPRmf2UHNygzfDCY7Iu">Trading Rules</a></td><td>Trading rules of TxFlow</td></tr><tr><td><a href="/pages/ULmoXhthX9AEP6aH6ZSe">Order Types and Matching</a></td><td>Market, Limit, and advanced orders and matching mechanics</td></tr></tbody></table>


---

# 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.txflow.com/perp/accounts-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.
