> For the complete documentation index, see [llms.txt](https://docs.satori.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.satori.finance/perpetual-trading/automatic-deleveraging.md).

# Automatic Deleveraging

If the insurance vault is insufficient to cover liquidation losses, the Automatic Deleveraging System (ADL) will automatically reduce the positions of traders holding opposite positions.&#x20;

The ADL prioritizes traders based on profit and leverage — those with higher profit and greater leverage are prioritized for deleveraging.&#x20;

Traders can monitor their priority ranking for automatic position reduction via the “ADL Ranking” indicator in the user interface. Each light represents a 20% priority ranking; when all lights are illuminated, the position is at risk of being reduced in the event of forced liquidation.&#x20;

The ADL ranking is calculated using the following metrics:&#x20;

#### ADL ranking calculation method <a href="#adl-ranking-calculation-method" id="adl-ranking-calculation-method"></a>

Where:

* `Effective leverage` is `mark value / (mark value - bankruptcy value)`
* `% profit` is `(mark value - average open value) / average opening value`
* `Mark value` is the value of the position at the mark price
* `Bankruptcy value` is the value of position at the bankruptcy price
* `Average opening value` is the the value of position at average opening price

This structured approach helps ensure a fair and transparent liquidation process while protecting the integrity of the trading platform.&#x20;


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.satori.finance/perpetual-trading/automatic-deleveraging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
