> For the complete documentation index, see [llms.txt](https://blockwise-1.gitbook.io/blockwise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blockwise-1.gitbook.io/blockwise/bw-perpetual-dex/trade-on-dex.md).

# Trade on DEX

<figure><img src="https://thena.gitbook.io/~gitbook/image?url=https%3A%2F%2Flh3.googleusercontent.com%2F-pxM7sk0zXmGdHqM0vg8FlS-gJpzCUqtrxj4-AuYlWeJrMM5HUjcFbDsNcDDJDr6uF28W5ufD_eVxVaHDfBsJsFMw2FZGY_M--uLh30KPZcJnvu3_wcEAIzbj8AppV7Qm76JtRbMs6p0ThOLOEmb1sE&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=27abb6341fd5f893620ef09b5247a554236d51151b1da5cc95e325586add738f" alt=""><figcaption></figcaption></figure>

#### 1. Unrealized Profit and Loss (“UPNL”) <a href="#id-1.-unrealized-profit-and-loss-upnl" id="id-1.-unrealized-profit-and-loss-upnl"></a>

It represents the potential gain or loss that you would realize if you were to close your current open position. This calculation is derived from the variance in USD value between your average entry price and the current index price.

#### 2. Open Interest <a href="#id-2.-open-interest" id="id-2.-open-interest"></a>

The Open Interest (“OI”) refers to the total value of perpetual contracts that are actively held by traders. These contracts have been opened but not been closed yet, and can be used as a proxy for the overall activity on the market.

<figure><img src="https://thena.gitbook.io/~gitbook/image?url=https%3A%2F%2Flh4.googleusercontent.com%2FKbAebHSxkB95kRStBmA5Lg1RHTSaSKuJgS-9aKJEGPyoIIxJhV3QSf3tiUbxFQLzEYvwNEengYq7Ub1reUNIPddXevuBhZ6GyA2a5uJBBzq0MJRhKPT8bIbgC8rsgoKJm7guuttJNutxI6ExbHhZVyo&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=775a0330c5be88f0d3af1bdbdea3a5716f8a9fa6904e77978dcbb5ad4d0b984b" alt=""><figcaption></figcaption></figure>

#### 3. Account Health <a href="#id-3.-account-health" id="id-3.-account-health"></a>

Your account health is represented as a percentage and indicates the health of your position. When your Equity Balance reaches the level of your Maintenance Margin, your account health will deteriorate, and you will face the risk of being liquidated.

`AccountHealth = (EquityBalance - MaintenanceMargin ) / EquityBalance`

#### 4. Maintenance Margin <a href="#id-4.-maintenance-margin" id="id-4.-maintenance-margin"></a>

The Maintenance Margin, also known as the CVA (Collateral Value at Risk), functions as your "Security deposit." If your equity balance (comprising your account balance and unrealized profit or loss) falls to this level, you will face liquidation. Maintenance Margin is locked, non-transferable, and represents the total across all your open positions.

#### 5. Equity Balance <a href="#id-5.-equity-balance" id="id-5.-equity-balance"></a>

Your Equity Balance is the sum of your allocated account balance and your unrealized Profit and Loss (PnL). It serves as your potential future balance. If it ever falls to the Maintenance Margin amount you've locked, you will face liquidation.

Once you close your trades and settle your PnL, your account balance will match your Equity Balance minus any applicable fees.

`EquityBalance = AllocatedBalance + UPNL`

#### 6. Allocated Balance <a href="#id-6.-allocated-balance" id="id-6.-allocated-balance"></a>

The allocated Balance is the sum of funds designated by the user for a specific Margin Sub-Account. These funds can be employed to initiate margin positions or can be unallocated and transferred back to the Main Account for withdrawal following a predefined Fraud Proof window.

Within this Fraud Proof window, third-party validators conduct checks to verify the accuracy and legitimacy of the balance claimed for withdrawal. If the balance aligns with the correct amount, it can then be withdrawn.

#### 7. Initial & Locked margin <a href="#id-7.-initial-and-locked-margin" id="id-7.-initial-and-locked-margin"></a>

The Initial Margin contributes to your Locked Margin balance. Locked Margin represents the cumulative Margin tied up in all your active positions. Despite being part of your Equity, Locked Margin serves as a safeguard to prevent users from opening an excessive number of positions.

#### 8. Available for Orders <a href="#id-8.-available-for-orders" id="id-8.-available-for-orders"></a>

Account Balance that is still available for Requests and Orders.

`AvailableForOrders = EquityBalance - LockedMargin - MaintenanceMargin`

#### 9. Withdrawal & Proof of Time <a href="#id-9.-withdrawal-and-proof-of-time" id="id-9.-withdrawal-and-proof-of-time"></a>

As SYMMIO’s architecture assumes that all transactions are final instantly, a fraud proof window has been integrated in order to address manipulation risks, including double spending. As a result, withdrawing your initial $USDT deposit needs to pass through a 12-hour fraud-proof period.

The implementation of a third party providing instant withdrawal solutions is currently being studied.


---

# 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://blockwise-1.gitbook.io/blockwise/bw-perpetual-dex/trade-on-dex.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.
