Margin & Liquidation

Margin & Liquidation

This page explains how margin level works in Portal and how to avoid liquidation when trading with leverage.


What is Margin Level?

Margin level helps you understand the health of your leveraged position:

Margin level = (balance + collateral) / total debt (Default: 999.00 when no positions are open)

  • Balance = any unrealized PnL (profit or loss)

  • Collateral = tokens you’ve deposited as margin

  • Total Debt = borrowed amount + accumulated funding cost


Risk Tiers

Risk Level
Margin Level Range
Action

Low Risk

≥ 1.5

Position is healthy. Monitor market only.

Medium Risk

1.15 ≤ x < 1.5

Consider adding collateral or repaying.

High Risk

1.10 ≤ x < 1.15

Immediate action strongly recommended.

Liquidation

< 1.10

Position will be liquidated automatically.


What is Total Debt?

Your total debt includes:

  • Borrowed tokens used to open a position

  • Funding cost, which accrues hourly:

Funding cost = balance × funding rate × time

The longer your position is open, the more cost you accumulate — increasing liquidation risk.


How to Avoid Liquidation

  • Add collateral to increase your margin level

  • Repay borrowed tokens to reduce debt

  • Monitor market volatility and take early action when in the medium or high risk zones


Last updated