# Risk Management

## Risk Controls

Drake implements multi-layered risk management.

### Margin Requirements

**Pre-Trade Checks:**

* Minimum margin ratio to open positions (\~150%)
* Sufficient collateral verification
* Position size limits

**Pre-Withdrawal Checks:**

* Minimum margin ratio after withdrawal (\~150%)
* Remaining collateral adequacy

**Ongoing Monitoring:**

* Real-time margin ratio calculation
* Liquidation threshold monitoring (\~100%)
* Automated liquidation triggers

### Open Interest Limits

**Per-Asset Caps**: Maximum open interest per instrument as percentage of vault assets.

**Imbalance Limits**: Maximum difference between long and short open interest.

Limits enforced via OIAndPnLManager on position opens and increases.

### Price Bands

Each instrument has minimum and maximum order prices (typically ±10% from current price). Orders outside bands rejected.

### Dynamic Spreads

SpreadManager adjusts AMM spreads based on:

* Market volatility
* Vault utilization
* Open interest imbalance
* Liquidity conditions

Spread ranges:

* Normal: 0.02-0.05%
* High volatility: 0.10-0.20%
* Emergency: 0.50%+


---

# 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.drake.exchange/trading/risk-management.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.
