> For the complete documentation index, see [llms.txt](https://docs.defx.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defx.com/docs/trade/defx-perp-dex/portfolio-margin.md).

# Portfolio Margin

**Introduction**

Defx supports portfolio margin - this allows users to trade any perpetual contract using assets deposited from multiple blockchains. Users may deposit any supported asset from the available list, and the system calculates the USD value of each asset by applying its designated collateralization ratio to the asset’s current index price. The index price data is obtained from Pyth, which serves as the [price oracle](/docs/trade/defx-perp-dex/price-oracle.md) on Defx.

In practical terms, the effective USD margin for a deposited asset is calculated by multiplying the asset’s collateralization ratio by its index price and the quantity deposited.&#x20;

For example, if the collateralization ratio for sUSDe is 0.8 and its index price is 1.25, depositing 625 units of sUSDe will result in an effective margin computed as (0.8 \* 1.25 \* 625), which equals 625 USD.&#x20;

\
**Benefits of Portfolio Margin**

* *Retaining Capital Exposure:* Traders can maintain exposure to their existing portfolio of assets across multiple chains without the need to convert them to USDC. This allows for direct utilization of diversified holdings across the entire Defx platform.
* *Capital Efficiency*: Instead of liquidating an individual asset when its value falls below the liquidation threshold, Defx employs the basket of deposited assets to mitigate losses. This approach minimizes the impact of a single underperforming asset on the overall margin, promoting efficient capital management.
* *Cross-Chain Compatibility*: Defx supports the deposit and withdrawal of assets across various blockchain networks. This cross-chain functionality enables users to manage their digital assets seamlessly, regardless of the originating network.

<br>


---

# 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:

```
GET https://docs.defx.com/docs/trade/defx-perp-dex/portfolio-margin.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.
