# Margin

Margin  refers to the collateral required to open and maintain a position in a perpetual futures contract. A trader must have a sufficient amount of margin in their account to maintain a position. In the event of price fluctuations, if the margin falls below a certain level, the trader may  their account. In case of price fluctuations, if margin falls below a certain level, traders must add more collateral to avoid liquidation. Liquidation occurs when margin falls below the maintenance margin level.

Example: In GooseFX DEX, Alice wants to open a long position in Bitcoin worth $1000. Alice must have a margin of 10% of the opened position, which in this case is $100. To open the position, Alice must deposit $100 as collateral to ensure she can cover any potential losses. The leverage used in this example is 10, meaning Alice can control $1000 worth of Bitcoin with only $100 of collateral.

As the price of Bitcoin changes, the value of Alice's position also changes. If the price of Bitcoin decreases and Alice's margin falls below the liquidation level, GooseFX DEX will automatically close Alice's position to protect against further losses. This is known as liquidation, and Alice will lose the remaining value of her margin.<br>

<table><thead><tr><th width="136" align="center">Perpetuals</th><th align="center">Initial Margin (Margin Ratio / Leverage)</th><th align="center">Maintenance Margin (Margin Ratio / Leverage)</th></tr></thead><tbody><tr><td align="center">SOL-PERP</td><td align="center">10% / 10x</td><td align="center">5% / 20x</td></tr></tbody></table>


---

# 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://docs.goosefx.io/archived/perpetual-futures/understanding-perpetual-futures/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.
