Astros
  • Astros - Dex Aggregator
    • šŸ™ŒIntroduction
    • šŸ’”Contact Page
    • āš’ļøAstros UI SDK
      • ⭐Getting Started
      • šŸ…°ļøAggregator Components
    • 🧰Aggregator SDK
    • āš™ļøAggregator API
    • Cross-Chain Swaps SDK
      • šŸš€Quick Start
      • 🪜Dive into
  • Astros - Perpetual
    • šŸ™ŒIntroduction
    • šŸ“šTutorial
      • Deposits and Withdrawals
      • Trading
    • šŸ“ˆPerpetual Trading
      • Funding
      • Margin
      • Index and Mark Price
      • Liquidation Process
      • Insurance Funds
      • ADL
      • Trading Fees
    • šŸ‘¬Referral
Powered by GitBook
On this page
  • Margin Requirements
  • Initial Margin
  • Maintenance Margin
  • Margin Modes
  • Margin Mode Selection and Restrictions
  1. Astros - Perpetual
  2. Perpetual Trading

Margin

PreviousFundingNextIndex and Mark Price

Last updated 1 month ago

Margin Requirements

Astros enforces specific margin requirements for traders to effectively manage risk and maintain trading stability. Users must fulfill two types of margin requirements:

  • Initial Margin to open or increase positions.

  • Maintenance Margin to keep positions open and prevent liquidation.

Traders can freely adjust their margin balance above these requirements according to their risk tolerance and market conditions.


Initial Margin

The Initial Margin is the collateral required to open or expand a position, calculated as follows:

InitialĀ Margin=InitialĀ MarginĀ FractionƗOrderĀ PriceƗOrderĀ Size\text{Initial Margin} = \text{Initial Margin Fraction} \times \text{Order Price} \times \text{Order Size}InitialĀ Margin=InitialĀ MarginĀ FractionƗOrderĀ PriceƗOrderĀ Size

The maximum leverage offered on Astros perpetual contracts is 25x, which implies that traders must deposit at least 4% of the position value as collateral when initiating a new position.

Example:

If a trader deposits $100 collateral and applies the maximum leverage (25x), the maximum position size can be calculated as:

\text{Maximum Position Size} = $100 \times 25 = $2,500

Maintenance Margin

The Maintenance Margin is the minimum collateral required to maintain an open position and prevent liquidation. The calculation formula is:

Positions falling below this maintenance margin threshold risk automatic liquidation.

Note: Maintenance margin rates vary according to specific token pairs.


Margin Modes

Astros offers two distinct margin modes to accommodate traders' different risk management preferences:

1. Isolated Margin Mode (Default Mode)

In Isolated Margin Mode, each position's margin is independent of the trader's overall account balance. Losses from liquidation are limited strictly to the margin allocated to that individual position, effectively capping the trader's maximum potential loss.

2. Cross Margin Mode

Cross Margin Mode allows positions to utilize the total available balance of the trading pair account as collateral. This approach helps prevent liquidation by dynamically allocating funds across positions within the same trading pair. However, liquidation under cross margin mode carries a higher risk, potentially resulting in the total loss of all collateral allocated within the all trading pair.


Margin Mode Selection and Restrictions

  • Users may select only one margin mode per perpetual trading pair.

  • To switch between margin modes or adjust existing orders:

    • All open positions and orders related to the trading pair must first be closed or canceled.

This constraint ensures clear risk management and consistent collateralization. Astros

MaintenanceĀ MarginĀ Amount=MaintenanceĀ MarginĀ FractionƗEntryĀ PriceƗPositionĀ Size\text{Maintenance Margin Amount} = \text{Maintenance Margin Fraction} \times \text{Entry Price} \times \text{Position Size}MaintenanceĀ MarginĀ Amount=MaintenanceĀ MarginĀ FractionƗEntryĀ PriceƗPositionĀ Size
šŸ“ˆ