Get onchain perpetual margin right

Before you open a leveraged position, you need to understand the two margin thresholds that govern every trade: initial margin and maintenance margin. These numbers define the boundary between a funded position and an automatic liquidation. If you skip this step, you are trading blind.

Initial margin is the minimum collateral required to open a position. Think of it as the entry fee. Maintenance margin is the minimum collateral you must hold to keep the position open. If your account balance drops below this level due to market movement, the protocol will liquidate your position to cover the loss.

The gap between these two thresholds is your liquidation buffer. A wider gap gives you more room for volatility, while a tighter gap increases the risk of being forced out of the trade. Always calculate the distance between your entry price and the liquidation price before placing an order.

Onchain perps require you to manage this risk manually, unlike centralized exchanges that often handle liquidations behind the scenes. You must monitor your collateral health in real-time. Use the platform’s risk dashboard to track your margin ratio. If the ratio approaches the danger zone, consider adding collateral or reducing your position size to avoid a forced sale.

Work through the steps

to Onchain Perp Margin works best as a clear sequence: define the constraint, compare the realistic options, test the tradeoff, and choose the path with the fewest hidden costs. That order keeps the advice usable instead of decorative. After each step, pause long enough to check whether the recommendation still fits the reader's actual situation. If it depends on perfect timing, unusual access, or a best-case budget, include a simpler fallback.

onchain perpetual margin
1
Define the constraint
Name the space, budget, timing, or skill limit that shapes the to Onchain Perp Margin decision.
onchain perpetual margin
2
Compare realistic options
Use the same criteria for each option so the tradeoff is visible.
onchain perpetual margin
3
Choose the practical path
Pick the option that still works after cost, maintenance, and fallback needs are included.

Fix common mistakes

Leverage amplifies both gains and losses, but most margin errors stem from mechanical oversights rather than market volatility. Understanding the two primary margin thresholds is the first step toward avoiding liquidation: initial margin, which locks up when you open a position, and maintenance margin, the minimum collateral required to keep it open [src-serp-1].

Ignoring liquidation price distance

New traders often maximize leverage without checking how close the liquidation price sits to the current market rate. A 20x position on a volatile asset might require only a 5% adverse move to trigger liquidation. Always calculate the liquidation price before entering. If the distance is less than your typical stop-loss buffer, the trade is too risky regardless of your conviction.

Overlooking funding rates

Perpetual futures do not expire, so exchanges use funding rates to keep contract prices tethered to the underlying spot asset [src-serp-2]. If you hold a long position during a period of high positive funding, you pay shorts every eight hours. These costs compound quickly and can erode profits or accelerate margin depletion even if the price remains flat. Check the current funding rate and projected cost over your intended holding period.

Neglecting slippage on exit

Margin trades often involve larger sizes than spot trades, increasing the risk of slippage when exiting quickly. In a rapid downturn, your stop-loss may execute at a significantly worse price than expected, leaving you with a margin shortfall. Account for potential slippage by sizing positions smaller than your maximum allowable leverage or by using limit orders where possible.

Onchain perpetual margin: what to check next

Onchain perpetual futures let traders speculate on price movements without expiry dates, but the mechanics differ significantly from traditional exchange models. Understanding how margin, liquidations, and funding rates interact on-chain is essential for managing risk.

How do initial and maintenance margin thresholds work?

Every leveraged position requires two distinct margin levels. Initial margin is the minimum collateral needed to open the trade, while maintenance margin is the floor below which the position becomes undercollateralized. If your collateral value drops below the maintenance threshold, the protocol automatically liquidates the position to protect the liquidity pool. You can close your position and withdraw remaining collateral at any time before that point.

What triggers liquidation in on-chain perps?

Liquidations are automated by smart contracts, not manual intervention. When market volatility pushes your position’s margin ratio below the required maintenance level, an oracle price feed triggers the liquidation process. This happens instantly on-chain. Unlike centralized exchanges, there is no queue; the contract executes the trade to restore solvency. Using real-time risk analytics helps you monitor your margin ratio closely to avoid sudden losses.

Do on-chain perps have funding rates?

Yes. Since these contracts never expire, funding rates ensure the perp price stays tethered to the underlying spot asset. Traders pay or receive these fees periodically based on whether the perp is trading at a premium or discount to the spot price. This mechanism replaces the settlement date found in traditional futures, allowing positions to be held indefinitely as long as margin requirements are met.

Can I withdraw collateral before closing a position?

No. Your deposited collateral is locked to back the leverage exposure. Withdrawing funds reduces your margin ratio, potentially triggering an immediate liquidation if the remaining collateral falls below the maintenance threshold. You must either close the position to release all collateral or add more funds to increase your buffer against price swings.