> For the complete documentation index, see [llms.txt](https://docs.bitu.io/bitu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitu.io/bitu/project-design/omni-trading-hub/margin.md).

# Margin

Currently, users’ trading accounts support only $BITU as the asset, which is linked to a unified margin and risk monitoring system.

* The account margin is denominated in $BITU.
* The margin currency’s equity (the value of the held currency) is converted into margin value based on a discount rate.
* M**argin Currency and Discount Rate**: BitU sets the discount rate for each currency. The discount rate determines the effective value of the currency when converted into margin.

## Valid Margin

Valid Margin = Total Margin Value - Margin Loss

* It measures the level of risk the account can bear. A higher Valid Margin allows for more positions and liabilities to be supported.
* Total Margin Value is the weighted sum of the equity and the discount rate of each currency.
* Margin Loss: This includes estimated fees and potential price slippage from pending orders and positions.

## Available Margin

Available Margin = Valid Margin - Frozen Margin

* It is used to validate the ability to open contracts and borrow. When Available Margin is 0, there is no margin support for opening positions or borrowing.
* Frozen Margin: Includes liabilities, occupied margin for positions, and reserved margin for orders.

## Maintenance Margin Ratio (UNIMMR)

UNIMMR = Valid Margin / Maintenance Margin

* It is used to monitor account risk.
* The higher the ratio, the safer the account. If the value drops below 100%, it triggers the liquidation process.
* Maintenance Margin (MM) includes liabilities and contract maintenance margin, determined by the maintenance margin rate of the risk tier.


---

# 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.bitu.io/bitu/project-design/omni-trading-hub/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.
