APX Finance
  • 🚀What is APX Finance?
  • 🌙Brand Logo & Guidelines
  • Welcome
    • 📄$APX Token & Contracts
      • ⚡Allocation
      • 🔥Token Burn
      • 💲Tax
    • 💎ALP Liquidity Pool
      • 💡How to buy ALP?
      • 💡How to stake/unstake?
      • 💡How to sell?
      • 💡Fees for buying and selling ALP
      • ‼️Risk
    • ⛓️Trading on V2
      • ❓How does it work?
      • ⬇️How to interact directly with the contract
      • 🤝Powered by Pyth Oracle and Chainlink
      • 🐸Degen Trading Mode
        • 💰Dynamic close fee for Degen Mode
      • 🎰V2 Fees & Slippage
      • 💢MAD perpetual contracts
        • 💢MADBTCUSD
          • Index Details
        • 💢MADETHUSD
          • Index Details
        • 💢MADCAKEUSD
          • Index Details
      • 😎Dumb Mode
        • How to place orders
      • 📃DEGEN Inscriptions Airdrop
      • 📈Forex
      • 👥APX V2 Referral
      • 📖APX Testnet Walk through [Inactive]
      • 💡FAQ
        • 💡Connect wallet
        • 💡Opening a position
        • 💡How to place stop orders?
        • 💡Position management
        • 💡One click close all position feature
        • 💡Order Types
      • 📹Video Tutorials (V2)
    • 👋Trading on V1
      • 📡Pre-Launch Markets
        • BLAST Pre-Launch Futures
      • 💰Wallet Connection
      • 💡How to start trading on APX V1?
        • 💸Deposit & Withdrawal
        • 🪜Margin Mode & Leverage
        • ⬆️Position Mode
        • 💻Order Types
          • TP/SL orders (Strategy Order)
          • Trailing Stop Order
        • 🛑Closing Positions
        • 📈Grid Trading
          • 👾Set-up Your Grid Trading Strategy
          • 👾Futures Grid Trading Auto Parameters Guide
          • 👾Long/Short Grid Trading introduction
        • 💡Lite Mode
      • ❓FAQ
        • ❓Multi-Assets Mode
        • ❓How to Adjust the Margin Balance in Cross/Isolated Margin Modes
        • ❓How to Calculate the Cost of Opening a USDⓈ-M Perpetual Futures Contract Position
        • ❓Mark Price in USDⓈ-M Perpetual Futures Contracts
        • ❓Funding Rate
        • ❓Auto-Deleveraging (ADL)
        • ❓APX Futures Liquidation Protocol
        • ❓Delisting Process of A Futures Contract
        • ❓APX DEX Referral Guidelines
        • ❓How to Whitelist APX Emails?
      • 📹Video Tutorial (V1)
  • Features & Tutorials
    • ℹ️General
      • 💡What is Gas Fee?
      • 💡How to switch network?
      • 💡How to change language
      • 💡How to bind your social media account to receive notifications
    • 🖥️All about APX Web
      • 💡How to Connect Your Wallet? (Web version)
      • 💡How to find your DEX UID? (Web)
    • ⛓️Permissionless DEX Engine
      • Features and benefits of permissionless solution
      • FAQs
    • 👾Trading
      • 💡How to Buy Crypto on APX DEX via BANXA
      • 💡How to check your balance (V1)
      • 💡How to use Multi-Assets Mode
      • 💡How-to Guide: Use BONUSUSD to trade crypto futures on APX V1
  • Programs
    • 📞V2 ARB Incentive Season (Trading)
    • 📣V2 ARB Incentive Season (Weekly Bonus, ALP Staking)
    • 💰$100,000 Binance Web3 Wallet Trading Campaign Tutorial
    • 🪂Strategic Partnership with Lista DAO - Cosmic Adventure Challenge
    • 📏V2 Trading Rewards
    • ⛏️Retroactive Mining Rewards
  • APX DAO
    • 👨‍🚀How To Participate?
    • 📫DAO Staking
      • 🎫Get Voting Power
      • ⚡Staking Rewards & Repurchased Tokens
      • ⚡Trading Benefits
      • ⚡Penalty Fee
    • 🍀Governance
      • 🌡️Temperature Check
      • 🤚Standards for raising DAO proposals
  • API
    • 🖱️Create API
    • 💾API Documentation
  • Community
    • 🔗Social Media & Communities
  • About Us
    • 🗺️Roadmap
      • 🍁2023 Roadmap
      • 🍁2022 Milestones
      • 🍁2021-2022 Roadmap
    • 🔖Audit Reports
    • APX Team
    • Privacy Policy
    • Terms of Use
    • Restriction
Powered by GitBook
On this page
  1. Welcome
  2. Trading on V1
  3. FAQ

Auto-Deleveraging (ADL)

PreviousFunding RateNextAPX Futures Liquidation Protocol

Last updated 1 year ago

Auto-deleveraging (ADL) is a risk management mechanism that occurs when the market is extremely volatile. ADL occurs as the final step after all other options have been exhausted.

APX strives to keep ADL to the bare minimum so as to provide users with the best trading experience. However, it is useful for traders to understand how ADL works to avoid it in extreme market conditions.

How does ADL work?

When a position is taken over by the liquidation engine i.e. liquidated, if the position is closed at a worse price than the bankruptcy price, the extra cost of this liquidation process will be covered by APX liquidation system. If the liquidation cannot be filled by the time the mark price reaches the bankruptcy price, the ADL system automatically deleverages the opposing trader’s position, which is calculated based on profit and leverage priority.

As a trader, you may evaluate whether your position is at risk of counterparty-liquidation based on an indicator of your priority in the queue — the LeveragePnLQuantile term. When all four bars are lit, it indicates that your position faces a higher ADL risk. As the number of lit bars decrease, so does the ADL risk.

When ADL occurs, a notification email is immediately sent to the affected user.

Calculation for ADL priority ranking

  • Pnl Percent=max(0,Unrealized Profit)/max(1,Wallet Balance)

  • If (Wallet Balance+Unrealized Profit)≤0, then Margin Ratio=0

  • If (Wallet Balance+Unrealized Profit)>0, then Margin Ratio=Maintenance Margin/(Wallet Balance+Unrealized Profit)

  • Leverage Pnl=Pnl Percent×Margin Ratio Leverage Pnl=Pnl Percent×Margin Ratio

  • Leverage Pnl Quantile=rank(user.Leverage Pnl)/Total User Count

Note:

  • Bankruptcy price may be out of the contract’s market price range.

  • Users with more lights turned up on the indicator and higher ranking are more likely to deleverage.

  • To avoid ADL, users can reduce the leverage of their position; or first close a position and then open another.

  • When there is an ADL, a notification email is immediately sent to the affected user. Users will be free to re-enter at any time.

👋
❓
❓