Sign-ups will officially open on May 29th at
rails.xyz
LogoLogo
Go to Rails.xyzRails ProRails PlayContact Us
  • GENERAL
    • The Rails Platform
    • Pricing & Fees
    • Competitions
    • Security
    • Navigating the Platform
      • Trading Page Overview
      • Portfolio Page Overview
      • Block Explorer
      • Trading Metrics Guide
      • Chart Settings Guide
  • Signing Up
    • Signup
      • Signup for Individuals
      • Signup for Businesses
    • User Eligibility
    • User Verification
      • Know Your Customer (KYC)
      • Know Your Business (KYB)
        • Business Document Requirements
        • KYC Requirements for Businesses
      • Certification of Documents
  • DEPOSITS & WITHDRAWALS
    • Wallet Connection
    • Deposits
    • Withdrawals
  • TRADING
    • Order Types
    • Placing Orders
    • Leverage and Liquidation
    • P&L Calculator
    • Funding
  • Index Price Sources
  • SUPPORT
    • Troubleshooting Tips
    • FAQ
      • How Do I Get Help With the Platform?
      • Why is My Application Not Approved?
      • Why Isn't My Order Going Through?
      • How Do I Select a Limit Price?
      • Why Can't I Change my Leverage?
      • Why are my Deposits Disabled?
      • What is a Layer 1 & Layer 2 Network?
  • Join us on Discord
  • Contact Us
Powered by GitBook

© Copyright 2025 Rails Limited

On this page
  • What is Leverage?
  • How Does Liquidation Work?
  • How is the Liquidation Price Calculated?
  • Frequently Asked Questions

Was this helpful?

  1. TRADING

Leverage and Liquidation

PreviousPlacing OrdersNextP&L Calculator

Last updated 14 days ago

Was this helpful?

What is Leverage?

Traders can use leverage to control larger positions with less capital. For example, 2x leverage allows a $2,000 position with just $1,000. Rails offers 1x to 5x leverage, provided you have sufficient balance.

Higher leverage increases both potential gains and risks. Ensure your available balance covers the required collateral; otherwise, you cannot open a trade. If unrealized Profit & Loss (P&L) reaches your balance, your position will .

Rails applies leverage at the account level, not the trade level. This means that all open positions must use the same leverage until all are closed.

How Does Liquidation Work?

When you trade with leverage, your position can be liquidated if the market moves against you. Your liquidation price (the index price at which your position will be liquidated) is the maximum absolute index price permitted to maintain a non-negative account balance. This can be viewed in the Position tab on the main Trade page as shown below.

Liquidation happens automatically if your position moves against you faster than you can add funds. To help protect your balance, consider setting trigger orders.

How is the Liquidation Price Calculated?

The liquidation price is calculated slightly differently for Long and Short positions as shown here:

Where:

Frequently Asked Questions

Why does my order have a liquidation price if I am not using leverage?

Since there is a safety net (3% safety margin), even if you open a position with 1x cross-leverage (i.e. no leverage) you will still see a liquidation price. This is in place to ensure your account balance does not go into the negative if the market moves very quickly causing slippage (the difference between the expected price of a trade and the actual price it is executed at).

Why did my liquidation price change?

The liquidation price is based off of your available balance which changes as you open and close trades. If you open a new position, the liquidation price will move closer to the entry price as the available balance decreases, increasing the risk of liquidation if the market moves unfavourably. Conversely, if you close a different position with a positive P&L, your liquidation price for any remaining positions will move further away from the entry price as the risk of liquidation decreases.

Why is the leverage used to determine the liquidation price different from what I selected when I placed my order?

The leverage you select when using the order panel determines your buying power (leverage x available balance). However, the effective leverage (the actual leverage used when opening a position) is calculated as follows:

The effective leverage may vary from your selected leverage due to several factors:

  1. Price Changes: The entry price may differ slightly between placing the order and its execution due to market movements.

  2. Fees: Trading fees are deducted from your available balance, reducing the amount that can be leveraged.

  3. Margin Requirements: A portion of your balance is reserved as margin to cover potential slippage or adverse price movements, impacting the effective leverage applied.

Since leverage is calculated as a function of position size and available balance, these adjustments to your balance and the actual position size can result in the effective leverage being slightly different from the leverage you initially selected.

What is the safety margin, and why is it 3%?

The safety margin is a key component of determining the liquidation price. It accounts for all fees that would be charged in the event of the position closing as well as a buffer to account for slippage. This is standard to avoid customer account balances going into the negative.

The safety margin is static for all users and is calculated as follows:

Where:

Liquidation Pricelong=Average Price×(1−(1Account Leverage)+Safety Margin)\text{Liquidation Price}_{\text{long}} = \text{Average Price} \times \left( 1 - \left( \frac{1}{\text{Account Leverage}} \right) + \text{Safety Margin} \right)Liquidation Pricelong​=Average Price×(1−(Account Leverage1​)+Safety Margin)

Average Price\text{Average Price}Average Price is the average entry price of the orders used to fill your position.

Account Leverage\text{Account Leverage}Account Leverage is the actual leverage used when you opened your positions, not the leverage you selected when placing your trade. It is determined using the sum of all open position balances and the account balance from the Account Summary.

Safety Margin\text{Safety Margin}Safety Margin is a standard 3% buffer which is added to account for market volatility and slippage. It is the minimum margin requirement which helps prevent negative account balances.

Effective Leverage=Total Position ValueTotal Available Balance\text{Effective Leverage} = \frac{\text{Total Position Value}}{\text{Total Available Balance}}Effective Leverage=Total Available BalanceTotal Position Value​

Safety Margin=3%=Liquidation Fee+Transaction Fee+Slippage Buffer\text{Safety Margin} = 3\% = \text{Liquidation Fee} + \text{Transaction Fee} + \text{Slippage Buffer}Safety Margin=3%=Liquidation Fee+Transaction Fee+Slippage Buffer

Liquidation Fee\text{Liquidation Fee} Liquidation Fee is a 1% standard fee charged to compensate for taking on the risk of managing high risk transactions and to incentivize responsible trading.

Transaction Fee\text{Transaction Fee}Transaction Fee is a 0.1% standard fee charged for all open and closed positions on the platform.

Slippage Buffer\text{Slippage Buffer}Slippage Buffer is an additional allowance to account for rapidly shifting index prices which may negatively impact trade completion. It is set at 1.9%.

auto-liquidate
Liquidation Priceshort=Average Price×(1+(1Account Leverage)−Safety Margin)\text{Liquidation Price}_{\text{short}} = \text{Average Price} \times \left( 1 + \left( \frac{1}{\text{Account Leverage}} \right) - \text{Safety Margin} \right)Liquidation Priceshort​=Average Price×(1+(Account Leverage1​)−Safety Margin)
Safety Margin=Transaction Fee+Liquidation Fee+Slippage Buffer=0.1%+1%+1.9%=3%\begin{align*} \text{Safety Margin} &= \text{Transaction Fee} + \text{Liquidation Fee} + \text{Slippage Buffer} \\ &= 0.1\% + 1\% + 1.9\% \\ &= 3\% \end{align*}Safety Margin​=Transaction Fee+Liquidation Fee+Slippage Buffer=0.1%+1%+1.9%=3%​
Account Leverage=max⁡(Total PositionsTotal Account Balance,1)\text{Account Leverage}=\max\left( \frac{\text{Total Positions}}{\text{Total Account Balance}}, 1 \right)Account Leverage=max(Total Account BalanceTotal Positions​,1)