> For the complete documentation index, see [llms.txt](https://dasus.gitbook.io/dasus-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dasus.gitbook.io/dasus-docs/trading-concepts/margining.md).

# Margin & Leverage

Margin is the collateral behind a leveraged position. On Dasus it is held and enforced by Hyperliquid — your funds stay in your own on-chain account — and the terminal shows, before every order, how much margin the order takes and where the liquidation would sit. This page covers margin modes, account types, leverage and the figures to watch. The controls sit above the order form on every perp market (`/trade/<MARKET>`).

{% hint style="info" %}
New to leverage? Start small and low, and read the estimated liquidation price in Order Details before you confirm each trade. See [Liquidation](https://dasus.gitbook.io/dasus-docs/trading-concepts/liquidation.md).
{% endhint %}

## What margin is

You do not pay the full value of a perp position. You post margin, and the position is sized by your leverage.

* **Order Value** = size × price
* **Margin Required** = order value at the mark price ÷ leverage
* **Available to Trade** = what Hyperliquid reports as available for this market and this side, net of fees. It can differ from your withdrawable balance: margin locked in positions and resting orders is not available, and on a Unified account the USDC lives on the spot side.

Example: $1,000 of BTC at 10× needs $100 of margin. Hyperliquid computes the initial margin at the **mark price**, not at your limit price, which is why typing a limit far from the market does not change the Margin Required row.

## Cross vs. isolated

|                      | Cross                                                                   | Isolated                                                                         |
| -------------------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| **Default**          | Yes                                                                     | No — chosen per market                                                           |
| **Where**            | Lite and Pro                                                            | Pro. A few markets support isolated only; there the switch is locked on Isolated |
| **Collateral**       | Your whole account backs every cross position                           | Only the margin assigned to that position                                        |
| **Loss containment** | A losing position can draw on the whole balance before it is liquidated | The loss is capped at the position's margin                                      |
| **Liquidation**      | Based on account-wide margin                                            | Based on that position's margin alone                                            |
| **Adjusting later**  | Change the leverage, or keep spare balance in the account               | Change the leverage, or **Add or remove isolated margin** on the position        |

The margin-mode popup describes them in its own words — *Cross: all positions in cross mode share the same cross margin as collateral. In the event of liquidation, your cross margin balance and any remaining open positions in assets under this mode may be lost.* *Isolated: manage your risk on individual positions by restricting the margin allocated to each one. If the margin ratio of an isolated position reaches 100%, the position will be liquidated. In this mode you can add or remove margin from individual positions.*

The mode is set per market from the **Cross / Isolated** button and applied on Hyperliquid with your session key (no wallet popup). Lite always trades cross.

{% hint style="success" %}
Rule of thumb: **isolated** when you want a hard cap on what one trade can lose; **cross** when you want the most distance to liquidation and accept that the whole balance backs the position.
{% endhint %}

### Adding or removing isolated margin

On an isolated position, **Add or remove isolated margin** (Positions table) opens a modal with **Add / Remove**, an amount in USDC and the resulting **New margin**. Adding margin pushes the liquidation price away; you can remove up to about 95% of the margin currently assigned. The change is applied on Hyperliquid immediately.

## Account type

The third button above the form — **Unified**, **Portfolio** or **Standard** — is your Hyperliquid account type, which decides how collateral is organised. The full description is in [Funding Your Account](https://dasus.gitbook.io/dasus-docs/start-here/funding-account.md#account-type-where-your-usdc-sits); what it changes for margin:

| Type                  | Collateral                                                                | What you notice                                                                                                                                                                                                                                                                                               |
| --------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Unified** (default) | One USDC balance backs perps, HIP-3 perps and spot                        | Nothing to transfer. Hyperliquid keeps that USDC on the spot side of the account, so a perps-only "account value" can read $0.00 while you have plenty of margin; Dasus reads the right figure for Available to Trade and for the liquidation estimate. The account panel shows a **Unified Account Summary** |
| **Portfolio Margin**  | HYPE, BTC, USDC and USDT all count as collateral, spot and perps together | In beta, with limits set by Hyperliquid                                                                                                                                                                                                                                                                       |
| **Standard / Manual** | Spot, perps and each HIP-3 venue are separate compartments                | USDC must be transferred to perps before it counts as margin. When it is in the wrong place the form shows a **Transfer** banner, and the Balances tab has Transfer to Spot / Transfer to Perps                                                                                                               |

Changing the type is signed by your wallet (not by the session key) and applied on-chain. Lite works on a Unified account only: on another type it asks you to switch, or to use Pro.

## Leverage

Leverage is set **per market**, up to that market's maximum (shown in the popup and in [Markets](https://dasus.gitbook.io/dasus-docs/market-data-and-research/markets.md)). Press the leverage button to open **Adjust Leverage**: a stepper, a slider with quick marks and the note *Note that setting higher leverage increases the risk of liquidation.* **Confirm** applies it on Hyperliquid at once.

* Dasus remembers your leverage per market and re-applies it before the first order on that market in each session, so an order never goes out at a stale leverage. If you already hold a position, its own leverage is the one you see.
* The button shows the effective leverage, capped at the market maximum. If [Guardian Mode](https://dasus.gitbook.io/dasus-docs/trading/guardian-mode.md) limits your leverage, the slider stops at that cap and the popup says *Guardian caps your leverage at N×*.
* With an empty account the popup offers **Deposit Needed** instead of Confirm.

Effects of leverage:

* **Higher leverage → less margin** for the same size, and a **smaller adverse move to liquidation**.
* **Gains and losses are on the full order value**, not on the margin — see [Entry Price & PnL](https://dasus.gitbook.io/dasus-docs/trading-concepts/entry-price-pnl.md).

### Changing leverage on an open position

**Adjust leverage** in the Positions table changes the market's leverage while the position is open. Lowering it assigns more margin to the position and pushes the liquidation price away; raising it frees margin and brings the liquidation price closer. On isolated positions you can also change the margin directly (above).

{% hint style="danger" %}
Raising leverage on an open position shrinks the buffer that protects it. Re-check the position's liquidation price after any change.
{% endhint %}

## The account panel

Beside the order form in Pro, the account panel holds **Deposit**, **Perps ⇄ Spot** and **Withdraw**, and a summary that depends on your account type:

| Unified Account Summary                                                                                            | Perps Summary (other account types)                                |
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| **Unified Account Ratio** — maintenance margin ÷ portfolio value; as it approaches 100% the liquidation risk rises | **Balance** — collateral without unrealized PnL                    |
| **Portfolio Value** — collateral + unrealized PnL                                                                  | **Unrealized PNL**                                                 |
| **Unrealized PNL**                                                                                                 | **Cross Margin Ratio** — maintenance margin ÷ account equity       |
| **Perps Maintenance Margin** — the minimum to keep your positions open                                             | **Maintenance Margin**                                             |
| **Unified Account Leverage** — total position value ÷ portfolio value                                              | **Cross Account Leverage** — total position value ÷ account equity |

Watch the margin ratio (the closer to 100%, the closer to liquidation), the maintenance margin, and — in the Positions table — each position's **Margin** (position value ÷ leverage) and **Liq. Price**.

## Related pages

* [Liquidation](https://dasus.gitbook.io/dasus-docs/trading-concepts/liquidation.md) — the maintenance rule and how the estimate is built
* [Take Profit / Stop Loss](https://dasus.gitbook.io/dasus-docs/trading/tp-sl.md) — automate your exits and cap the downside
* [Funding Rate](https://dasus.gitbook.io/dasus-docs/trading-concepts/funding-rate.md) — periodic payments that move your margin over time
* [Order Types](https://dasus.gitbook.io/dasus-docs/trading/order-types.md) — market, limit, trigger orders and more


---

# 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://dasus.gitbook.io/dasus-docs/trading-concepts/margining.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.
