Aster
  • OVERVIEW
    • What is Aster?
      • How to connect your wallet
      • Our smart contracts
  • PRODUCT
    • Product releases
    • AsterEX Pro
      • Pro fees
      • Order types
      • Margin
        • Calculating max transfers in Cross and Isolated margin
      • Mark price
      • Liquidations
      • Funding rate
      • Single asset mode & Multi-asset mode
      • ADL
      • Trailing Stop Order
      • Open Cost calculation
      • Referral program
      • API
        • How to create API
        • API document
      • Delisting of a perps contract
    • AsterEX Simple
      • Leverage
      • Price oracles
      • Fees & slippage
      • Degen Trading Mode
      • Dumb mode
      • Manage your positions
      • Order types
      • Interact with the contract directly
    • Aster Earn
      • Earn
        • Mint asBNB
        • Mint asCAKE
        • Mint asUSDF
        • Mint asBTC
        • Aster ALP
          • How to mint ALP?
          • How to burn ALP?
          • ALP Fees
      • Ecosystem
        • PancakeSwap
          • LP on PancakeSwap
        • Pendle
          • asUSDF on Pendle
          • asBNB on Pendle
          • USDF on Pendle
          • How to calculate Au points for LP and YT
        • Tranchess
        • Restaking
        • Yield Strategies
    • USDF Stablecoin
      • Situating USDF in the Stablecoin Landscape
      • How USDF Works
      • Maintaining the Peg
      • Fund Custody & Risk Management
      • FAQs
      • Tutorials
    • AsterLayer
    • Help
  • Stage 1: Spectra
    • Aster Spectra: Stage 1
    • Mint to Earn Au
    • Au Trader Boost
    • Trade like a Pro, Earn like a Pro
    • Treasure Boost Campaign
    • Referral Bonus & Team Boosts
  • Brand & Community
    • Aster Media Kit
    • Official links
  • About us
    • Audit Reports
    • Aster – Terms and Conditions
    • Aster – Privacy Notice
Powered by GitBook
On this page
  • Cross margin
  • Isolated margin
  1. PRODUCT
  2. AsterEX Pro
  3. Margin

Calculating max transfers in Cross and Isolated margin

Pro Mode (Orderbook Trading)

When using Cross or Isolated Margin modes, the amount you can transfer in or out depends on your wallet balance, margin requirements, and unrealized profit and loss. Here’s how to calculate it.

Cross margin

In Cross Margin mode, your margin balance is shared across all open positions. The maximum amount you can transfer out depends on your wallet balance, unrealized PnL, and the required margin for open orders.

If there is no unrealized PnL:

Maximum transferable amount = Cross wallet balance − Σ(Isolated open order initial margin) − Σ(Cross position maintenance margin)

If there is unrealized PnL:

Maximum transferable amount = Cross wallet balance + Σ(Cross unrealized PnL) − Σ(Cross initial margin) − Σ(Isolated open order initial margin)

Note: These calculations assume no gift balance or cross collateral.

Isolated margin

In Isolated Margin mode, margin is dedicated to each individual position. The maximum amount you can transfer in or out depends on the available margin relative to that position’s maintenance requirements.

Maximum transfer-in amount for Isolated Margin:

Maximum transfer-in amount = min (Cross wallet balance − Σ(Isolated open position initial margin) − Σ(Cross position maintenance margin), Available balance)

Maximum transfer-out amount for Isolated Margin:

Maximum transfer-out amount = max (0, min (Isolated wallet balance − Isolated position maintenance margin,

Isolated wallet balance + Size × (Mark price − Entry price) − Mark price × Abs(Size) × Initial margin rate))

Note:

  • Transferring margin out reduces the buffer protecting your position.

  • Removing too much margin can increase your risk of liquidation.

PreviousMarginNextMark price

Last updated 9 days ago