# Liquidations

Satori implements the mark price to mitigate the risk of liquidations resulting from low liquidity or market manipulation. A position is liquidated when the margin balance falls to the maintenance margin level.&#x20;

**Calculation Formula:**

\- Liquidation Price (Long):

*Liquidation Price = Average Entry Price \* (1 + Maintenance Margin Fraction) - (Position Margin Balance / Size of Contracts)*

\- Liquidation Price (Short):

*Liquidation Price = Average Entry Price \* (1 - Maintenance Margin Fraction) + (Position Margin Balance / Number of Contracts)*&#x20;

\- Perpetual Margin Level:

*Perpetual Margin Level = (Position Maintenance Margin / Position Margin Balance) \* 100%*&#x20;

**Isolated Margin Liquidation**

In isolated margin mode, liquidation impacts only the margin and funding fees associated with the specific position. Other positions remain unaffected.&#x20;

**Cross Margin Liquidation**

In cross margin mode, liquidation results in the loss of all collateral, funding fees for full-margin positions, frozen order margins, and the entire available balance.&#x20;

When liquidation occurs at the bankruptcy price, the following scenarios may arise:&#x20;

* If the position is liquidated at a price better than the bankruptcy price, the excess funds will be added to the insurance vault.
* If the position cannot be liquidated at a price better than the bankruptcy price, the deficit will be covered by the insurance fund. If the insurance fund is insufficient, the liquidation position will be managed by the Automatic Deleveraging System (ADL).&#x20;


---

# 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.satori.finance/perpetual-trading/liquidations.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.
