> For the complete documentation index, see [llms.txt](https://docs.lighter.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lighter.xyz/trading/multi-asset-margin.md).

# Multi-Asset Margin

Multi-Asset Margin enables users to use non-USDC assets as margin for trading. Users deposit supported assets (e.g. ETH) into their margin balance, and the value of these assets — discounted by a haircut — counts toward the account's total margin. This allows users to trade perpetual futures and spot markets using their existing holdings without first converting to USDC.

Multi-Asset Margin offers convenience when it comes to margin usage. That said, as we roll out collateral assets, we want to be conscious in our approach with conservative user and global supply limits, listed per asset under [Supported Collateral Assets](#supported-collateral-assets) below.

Multi-Asset Margin is available exclusively to accounts with Unified Trading Accounts enabled.

To enable it via API, see [Manage Trading Mode and Margin](https://docs.lighter.xyz/developers/integration-guides/manage-trading-mode-and-margin).

{% hint style="info" %}
When no non-USDC margin assets are held, Multi-Asset Margin accounts behave identically to standard cross-margin accounts. All existing margin calculations remain unchanged.
{% endhint %}

***

#### How It Works

1. A user deposits a supported asset (e.g. ETH) into their margin balance.
2. The asset's value, discounted by LTV, is added to the account's Total Account Value.
3. The account can use this value to open perpetual futures positions, execute spot trades, or both.
4. A single health check monitors the account continuously using the Total Account Liquidation Threshold.
5. If the account's health falls below the Maintenance Margin Requirement, liquidation is triggered — for both perp positions and spot margin assets in a unified flow.

**Example Use Cases**

* **Basis trade:** A user deposits ETH as margin and opens a short ETH perpetual position. The spot ETH and the short perp offset each other, creating a delta-neutral position that earns funding.
* **Leveraged spot:** A user deposits ETH, and uses the additional margin to buy more ETH on the spot market — effectively creating a leveraged long.

***

### Margin Assets

Each margin-enabled asset is configured with the following parameters:

| Parameter             | Description                                                                                                                                             |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **LTV**               | Loan-to-Value ratio. Determines how much of the asset's value counts toward Total Account Value.                                                        |
| **LT**                | Liquidation Threshold. Determines how much of the asset's value counts toward Total Account Liquidation Threshold. Always greater than or equal to LTV. |
| **LF**                | Liquidation Factor. Determines the minimum value the user receives per unit of collateral during liquidation. Always greater than or equal to LT.       |
| **Liquidation Fee**   | Maximum fee paid when spot collateral is seized during liquidation. Capped so that the user always receives at least the LF discounted value.           |
| **User Supply Cap**   | Maximum amount a single user can hold as margin (in asset units).                                                                                       |
| **Global Supply Cap** | Maximum total amount held as margin across all users.                                                                                                   |

***

### Total Account Value

Total Account Value (TAV) represents the risk-adjusted value of the entire account. It extends the existing Total Account Value by including non-USDC margin assets discounted by their LTV:

$$
\text{TAV}(\text{USDC}) = \text{PortfolioBalance}(\text{USDC}) + \sum\_{j} \text{LTV}\_j \times \text{MarginBalance}\_j \times \text{IndexPrice}\_j
$$

Where Portfolio Balance is the USDC value of the account including unrealized PnL on perpetual positions, as defined in [PnL and Total Account Value](/trading/pnl-and-total-account-value.md).

Total Account Value is used for all risk checks when opening new positions or placing orders.

### Total Account Liquidation Threshold

Total Account Liquidation Threshold (TALT) represents the account's value under the less conservative LT discount. It is used to determine when the account enters liquidation:

$$
\text{TALT}(\text{USDC}) = \text{PortfolioBalance}(\text{USDC}) + \sum\_{j} \text{LT}\_j \times \text{MarginBalance}\_j \times \text{IndexPrice}\_j
$$

{% hint style="info" %}
Since $$\text{LT} \geq \text{LTV},$$ it always holds that $$\text{TALT} \geq \text{TAV}$$.
{% endhint %}

***

### Health Checks

Multi-Asset Margin accounts use a single unified health check that covers both perpetual positions and spot margin assets. The margin requirements IMR, MMR, and CMR remain unchanged from the existing contract specifications.

$$
\begin{aligned}
\textbf{Healthy:} \quad & \text{TAV} \geq \text{IMR} \\\[4pt]
\textbf{Pre-Liquidation:} \quad & \text{TALT} \geq \text{MMR} \quad \text{and} \quad \text{TAV} < \text{IMR} \\\[4pt]
\textbf{Partial Liquidation:} \quad & \text{TALT} < \text{MMR} \quad \text{and} \quad \text{TALT} \geq \text{CMR} \\\[4pt]
\textbf{Full Liquidation:} \quad & \text{TALT} < \text{CMR}
\end{aligned}
$$

In pre-liquidation, only operations that improve the account's health ratio and reduce position size are permitted. When TALT falls below MMR, both perpetual positions and spot margin assets become eligible for liquidation in a unified flow.

{% hint style="info" %}
When no non-USDC margin assets are held, TAV and TALT both reduce to Portfolio Balance (USDC). The health check becomes identical to the existing cross-margin system.
{% endhint %}

***

### Liquidation

When an account enters liquidation $$(\text{TALT} < \text{MMR})$$, the liquidation engine can close both perpetual positions and spot margin assets. Open orders are canceled first. If the account remains below MMR, the liquidation engine sends IoC limit orders at the respective zero prices through the corresponding order books to close positions. Liquidation stops as soon as the account becomes healthy.

#### Perp Zero Price

The perp zero price is modified to account for the value of non-USDC margin assets, properly maintaining the health ratio as an invariant.

$$
\text{ZeroPrice}\_i(\text{long}) = \text{markPrice}\_i \times \left(1 - \frac{M\_i \times \text{TALT}}{\text{MMR}}\right) \\
\text{ZeroPrice}\_i(\text{short}) = \text{markPrice}\_i \times \left(1 + \frac{M\_i \times \text{TALT}}{\text{MMR}}\right)
$$

This ensures that executing a perp trade at the zero price preserves the account's health ratio. When no non-USDC margin assets are held, TALT reduces to Portfolio Balance and the formulas are identical to the standard zero price.

#### Spot Zero Price

When partially liquidating a spot margin asset, the exchange sends an Immediate-or-Cancel (IoC) order to the spot order book on behalf of the user. The zero price for a spot asset is:

$$
\text{SpotZeroPrice}\_j = \text{IndexPrice}\_j \times \text{LF}\_j
$$

The liquidation fee is collected up to the configured amount, with the constraint that the user receives at least the LF-discounted value in USDC for each unit of collateral sold. This ensures that liquidation execution is always at least as favorable as the LF price.

***

### Supported Collateral Assets

Each collateral asset carries a set of risk parameters that control how much margin value it provides and how it behaves during liquidation. Current live values are always available from the `assetDetails` API endpoint, where `margin_mode: "enabled"` marks assets accepted as collateral.

#### Lighter

| Asset | Loan-to-Value | Liquidation Threshold | Liquidation Factor | Liquidation Fee | User Supply Cap | Global Supply Cap |
| ----- | :-----------: | :-------------------: | :----------------: | :-------------: | :-------------: | :---------------: |
| ETH   |      80%      |          90%          |         95%        |        2%       |     2000 ETH    |     10000 ETH     |
| weETH |      70%      |          85%          |         95%        |        2%       |    800 weETH    |     1000 weETH    |
| XAUT  |      70%      |          85%          |         95%        |        2%       |     500 XAUT    |     2000 XAUT     |

#### Robinhood Chain Lighter

| Asset | Loan-to-Value | Liquidation Threshold | Liquidation Factor | Liquidation Fee | User Supply Cap | Global Supply Cap |
| ----- | :-----------: | :-------------------: | :----------------: | :-------------: | :-------------: | :---------------: |
| AAPL  |      50%      |          75%          |         95%        |        2%       |     45 AAPL     |      330 AAPL     |
| AMZN  |      50%      |          75%          |         95%        |        2%       |     60 AMZN     |      450 AMZN     |
| GOOGL |      50%      |          75%          |         95%        |        2%       |     40 GOOGL    |     300 GOOGL     |
| META  |      50%      |          75%          |         95%        |        2%       |     20 META     |      150 META     |
| MSFT  |      50%      |          75%          |         95%        |        2%       |     28 MSFT     |      210 MSFT     |
| NVDA  |      50%      |          75%          |         95%        |        2%       |     60 NVDA     |      500 NVDA     |
| QQQ   |      70%      |          85%          |         95%        |        2%       |     100 QQQ     |      500 QQQ      |
| SNDK  |      50%      |          75%          |         95%        |        2%       |     10 SNDK     |      80 SNDK      |
| SPCX  |      50%      |          75%          |         95%        |        2%       |     100 SPCX    |      740 SPCX     |
| SPY   |      70%      |          85%          |         95%        |        2%       |     100 SPY     |      500 SPY      |
| USO   |      50%      |          75%          |         95%        |        2%       |     100 USO     |      750 USO      |

USDC (Lighter) and USDG (Robinhood Chain Lighter) remain the base collateral and are always valued at 100% with no liquidation fee or supply cap.


---

# 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.lighter.xyz/trading/multi-asset-margin.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.
