> For the complete documentation index, see [llms.txt](https://docs.asterdexcorp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.asterdexcorp.com/trading/perpetuals/fees-and-specs/auto-deleveraging-adl.md). Agents can also search and read this documentation through its [MCP server](https://docs.asterdexcorp.com/~gitbook/mcp).

# Auto-Deleveraging (ADL)

Auto-Deleveraging (ADL) is a risk management mechanism that activates during extreme market conditions, used only when other protective systems — like liquidation and the insurance fund — cannot cover losses in time.

### **How ADL Works**

When a position is liquidated but the execution price is worse than the bankruptcy price, the system absorbs the remaining loss. However, if the liquidation can't be completed before the Mark Price hits the bankruptcy price, ADL is triggered. This forcibly reduces the size of opposite-side positions held by other traders, starting with those who are most profitable and most highly leveraged.

### **How ADL Priority is Determined**

The system uses a ranking based on a trader's profit and leverage:

PNL Percentage = Unrealized Profit/abs (Position Notional)

Effective Leverage = abs(Position Notional) / (Account Balance + Unrealized Profit)

If PNL Percentage ≥ 0, then ranking = PNL Percentage \* Effective Leverage

If PNL Percentage < 0, then ranking = PNL Percentage / Effective Leverage

Leverage PNL Quantile = rank (user.ranking) / Total User Count

The higher your leverage PnL quantile, the higher your ADL risk.

### **ADL Risk Indicator**

The LeveragePnLQuantile bar shows your risk of being auto-deleveraged:

* 4 bars = high ADL risk
* Fewer bars = lower ADL risk

In Aster Pro, the LeveragePnLQuantile bar shows your risk of being auto-deleveraged:

* 4 bars = high ADL risk
* Fewer bars = lower ADL risk

<figure><img src="https://4068247257-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWhSHuKmgnGREbVb12PK2%2Fuploads%2FVUhltNkjAciejKmuGNav%2F%E6%88%AA%E5%B1%8F2025-04-01%2009.38.59.png?alt=media&amp;token=91f523a9-1acc-4918-923d-d6a9ebd73cf9" alt=""><figcaption><p>This position is showing 1 of 4 bars - there is a low ADL risk</p></figcaption></figure>

### **How to Reduce ADL Risk**

* Lower your leverage
* Close and reopen your position to reset your priority in the ADL queue

### **What Happens If You're ADL'd**

Your position is partially or fully reduced without warning. You can re-enter the market at any time afterward.

#### Additional notes

* The bankruptcy price might fall outside the current trading range, making it harder to fully close your position before losses exceed your margin
* ADL mostly affects traders with high leverage and large unrealized profits


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.asterdexcorp.com/trading/perpetuals/fees-and-specs/auto-deleveraging-adl.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
