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

# Margining

### Margin Modes

Boosted positions operate exclusively under **Isolated Margin**. Cross margin is not supported within the Boosted framework.

Each boosted position is margined independently, with collateral explicitly allocated to that position. Risk is fully compartmentalized and cannot impact other balances or positions within the account.

***

### Initial Margin & Leverage

Boosted leverage extends beyond the Hyperliquid's maximum allowable leverage.

For Boosted pairs, users may select leverage beginning from the Hyperliquid's highest leverage limit and up to the asset’s designated **Boosted maximum** thats offerred by Onyx.

To understand:\
Hyperliquid supports up to **40x leverage** on **BTC**. Boosted leverage enables selection above this threshold, beginning at **41x leverage** and extending up to the defined **Boosted leverage cap** of **100x leverage** for BTC.

#### **Initial Margin Requirement**

Under isolated margin, the required collateral to open a position is calculated as:

> **Initial Margin = (Position Size × Mark Price) ÷ Leverage**

Higher leverage reduces initial margin requirements proportionally, increasing capital efficiency while narrowing liquidation thresholds.

#### **Maintenance Margin**&#x20;

In isolated mode, users may add or remove collateral from an open position at any time, subject to system constraints. For boosted positions at maximum leverage, maintenance margin is set at 50% of the initial margin.

***

### Architecture

#### Independent Margin Layer

Boosted leverage operates via a margin system that is independent from Hyperliquid's.

* Orders are executed through a dedicated **Boosted Wallet**, which operates independently from the primary account EOA.
* Margin amplification is handled off-venue by Onyx’s internal risk engine.
* Position monitoring and liquidation logic are managed within this adjacent system.

This separation ensures:

* Execution integrity remains unchanged
* Liquidity and orderbook depth are unaffected
* Risk parameters can be adjusted independently of Hyperliquid's constraints

The result is a modular structure that enhances leverage limits while maintaining venue compatibility.


---

# 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, and the optional `goal` query parameter:

```
GET https://tradewithonyx.gitbook.io/docs/boosted-framework/margining.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
