Choose cross or isolated margin

Selecting the right margin mode for onchain perp trading depends on how you manage capital and risk. The core trade-off is between capital efficiency and risk isolation. Cross margin pools your entire wallet balance to support positions, allowing higher leverage with less collateral. Isolated margin locks funds into a single position, limiting losses to that specific allocation.

Cross margin is ideal for active traders who want to maximize the utility of their portfolio. By sharing collateral across all open positions, you reduce the chance of a single adverse move triggering a liquidation. This setup requires careful monitoring, as a sharp market drop can drain your entire account balance if not managed properly.

Isolated margin suits traders who prefer strict risk boundaries. Each position operates independently, so a liquidation only affects the funds allocated to that trade. This approach protects the rest of your portfolio from cascading losses, making it safer for volatile markets or inexperienced traders.

Use the table below to compare the key features of each mode. Choose cross margin for efficiency and isolated margin for safety.

onchain perp margin
FeatureCross MarginIsolated Margin
Liquidation ScopeEntire portfolio balancePosition-specific allocation
Capital EfficiencyHigh (shared collateral)Low (locked funds)
Risk IsolationLow (contagion risk)High (contained loss)
Best ForActive, experienced tradersRisk-averse or new traders

For more details on leverage and liquidation risks, see the MetaMask guide on cross vs. isolated margin.

Connect your wallet and select chain

Before you can access onchain perp margin, you need to bridge your capital to the right blockchain. Unlike centralized exchanges, decentralized perpetual futures require you to manage your own keys and select the specific network where the trading protocol lives. Getting this setup right ensures your funds are on the correct chain for trading.

onchain perp margin
1
Connect your wallet

Open your preferred Web3 wallet, such as MetaMask or Rabby. Navigate to the onchain perpetual futures platform and click the "Connect Wallet" button. Authorize the connection in your wallet popup to establish a secure link between your interface and the protocol.

2
Verify your network

Check the network selector in the top-right corner of the trading interface. Ensure it matches the blockchain where the onchain perp margin protocol is deployed (e.g., Ethereum, Arbitrum, or Base). Connecting to the wrong chain will prevent you from seeing your balance or placing trades.

3
Fund your trading account

Transfer the required stablecoins or native tokens from your external wallet or exchange to your connected onchain wallet address. Confirm that the funds have arrived on the selected blockchain before attempting to open a position. This capital serves as your margin guarantee against potential losses.

Once your wallet is connected and funded, you are ready to select your margin mode. The next step involves choosing between cross and isolated margin to define your risk parameters.

Deposit collateral and set leverage

Funding an onchain perpetual position begins with depositing collateral into the specific margin account or wallet connected to the exchange. Unlike traditional futures, onchain perps often allow you to use crypto assets like ETH, SOL, or stablecoins as margin, which keeps your capital within the blockchain ecosystem. This capital efficiency is a primary advantage of perpetual futures, allowing traders to open larger positions with less upfront capital than traditional markets require.

Once your collateral is deposited, you must choose a leverage ratio. Leverage amplifies both potential profits and losses. A common mistake is selecting maximum leverage immediately; instead, start with a conservative ratio that aligns with your risk tolerance. Most platforms provide a leverage slider, but understanding the liquidation price is critical. If your margin level drops below the exchange's maintenance threshold, your position will be automatically closed to cover losses.

To manage this risk, aim to maintain a healthy margin level, ideally well above 200% during volatile market conditions. This buffer gives your trade room to breathe against temporary price swings without triggering a liquidation. Always verify the current value of your collateral asset, as price fluctuations in your margin token itself can impact your available buying power.

onchain perp margin
1
Deposit collateral

Transfer your chosen asset (e.g., ETH, USDC) from your external wallet to the exchange's designated margin wallet or account. Ensure the asset is supported as collateral for the specific perpetual contract you intend to trade.

2
Select leverage ratio

Locate the leverage slider or input field on the trading interface. Adjust the ratio to your desired level. Remember that higher leverage reduces the price movement required to liquidate your position. Start conservatively to understand the mechanics before increasing exposure.

3
Verify liquidation price

Check the calculated liquidation price displayed by the platform. Ensure this price is sufficiently far from the current market price to accommodate volatility. If the liquidation price is too close, reduce your leverage or increase your collateral deposit.

Monitor margin level and funding

Keeping your onchain perp margin healthy requires watching two moving parts: your margin level and the funding rate. One tells you how close you are to liquidation; the other tells you how much it costs to hold your position open. Ignoring either one turns a calculated trade into a gamble.

Check your margin level

Your margin level is the ratio of your account equity to your used margin. It is your primary shield against liquidation. In a cross margin setup, this number reflects your entire wallet balance allocated to the protocol. In isolated margin, it only reflects the funds you explicitly assigned to that specific position.

Aim to keep your margin level well above 200% to absorb normal market volatility. If your level drops toward 100%, you are entering the danger zone where a small adverse move could trigger a liquidation event. Onchain protocols execute liquidations automatically via smart contracts, meaning you have no grace period to add funds manually.

Note: Unlike centralized exchanges, onchain liquidations often include a liquidation penalty. This fee is taken from your margin to compensate the liquidator, reducing your remaining balance further. Always check the specific penalty structure of the protocol you are using.

Understand funding rate impacts

Funding rates are periodic payments exchanged between long and short traders to keep the perpetual contract price anchored to the underlying spot price. If the funding rate is positive, longs pay shorts. If it is negative, shorts pay longs.

When you hold a position for an extended period, these payments accumulate. High positive funding rates can erode your profits even if the asset price doesn't move against you. Conversely, negative funding rates can provide a small income stream for short sellers, but they increase the cost for longs.

Before opening a long position in a hot market, check the current and predicted funding rates. If the rate is exceptionally high, consider whether the potential upside justifies the carrying cost. Some traders use this data to time their entries, avoiding positions when funding costs are at their peak.

Set up alerts

Manual monitoring is impossible when you are not staring at the screen. Set up price alerts and margin level notifications through your wallet or the trading interface. Most onchain dashboards allow you to set custom thresholds for margin levels. When your level hits your safety buffer, you will receive a notification to add margin or reduce your position size.

For funding rates, many analytics platforms provide historical data and predictions. Use these tools to gauge whether the current rate is an anomaly or a trend. Sudden spikes in funding often indicate extreme market sentiment, which can precede sharp reversals.

Manage liquidation risk and exit

Onchain perpetuals introduce protocol-level risks that centralized exchanges do not face, making active risk management non-negotiable. Unlike traditional markets, where circuit breakers or broker intervention might pause volatility, onchain positions can be liquidated instantly by smart contracts if your margin level drops too low. To survive, you must treat your margin not as a static deposit, but as a dynamic buffer that requires constant monitoring and adjustment.

The following steps outline a disciplined workflow for managing onchain perp margin, from setting protective stops to executing exits. This approach prioritizes capital preservation over aggressive leverage, ensuring that a single adverse price move does not wipe out your position.

onchain perp margin
1
Set hard stop-losses immediately

Before entering any position, define your maximum acceptable loss. Set a hard stop-loss order at a price level that invalidates your trade thesis. This prevents emotional decision-making during high volatility. Onchain, ensure your stop-loss is placed at a price that maintains a healthy margin buffer above the liquidation price, accounting for potential slippage during rapid market moves.

2
Monitor margin level closely

Keep your margin level well above the minimum requirement. While some brokers consider a level above 200% safe, onchain environments often require higher buffers due to oracle latency or gas spikes. Regularly check your account health factor. If the margin level drops toward the warning zone, prepare to add funds or reduce position size immediately to avoid forced liquidation.

3
Add margin to prevent liquidation

If your position is underwater but the thesis remains valid, adding margin can extend your survival time. Deposit additional collateral to raise your margin level back to a safe range. This is only effective if you have the liquidity to cover the deposit and the conviction that the price will reverse. Never add margin to a losing position without a clear plan for exit.

4
Exit profitably or cut losses

Discipline dictates that you must exit when your plan is complete. If the target is hit, take profits before the market reverses. If the stop-loss is triggered, accept the loss and move on. Holding onto losing positions in hopes of a rebound is the fastest way to exhaust your margin. Onchain, ensure you account for transaction fees when calculating your net exit price.

Common perp margin: what to check next

Margin is the collateral you deposit to open and maintain a perpetual futures position. It acts as a guarantee for the exchange against your potential losses. If the trade moves against you, the margin covers the deficit before your position is liquidated. MetaMask outlines the specific mechanics of leverage and margin types to help traders understand these risks.

What is the margin in perps?

Margin is the initial amount of funds locked in your account to secure a leveraged position. It is not the total value of the trade, but the portion you put up to control that larger position. For example, if you use 10x leverage, you only need 10% of the position's total value as margin. The exchange uses this deposit to ensure you can cover losses up to that limit.

Is 200% margin level still okay?

A margin level above 200% is generally considered safe. This metric measures your equity relative to your used margin; a higher percentage means more buffer against volatility. If your margin level drops below the exchange's minimum threshold (often 50% or 100%, depending on the platform), the system will forcibly close your position to prevent negative balance. Maintaining a level above 200% provides a comfortable safety net against sudden market swings.

What happens if I run out of margin?

When your available balance drops to zero, you face liquidation. The exchange automatically sells your position at the current market price to repay the borrowed funds. In cross margin mode, this draws from your entire wallet balance; in isolated margin, only the funds allocated to that specific trade are lost. Crypto.com notes that isolated margin offers a clearer way to manage this risk by capping losses to the allocated amount.