LogoLogo
  • 👋Introduction
  • Get Started
  • Sonic rGEMs Rewards Program
  • Chart Trader
  • Index Price
  • Vaults
    • RabbitX Liquidity Pool Vault
  • Funding Rate
  • Deposit / Withdrawal
  • Fiat Deposits
  • Binance Direct Deposit
  • Profit / Loss Calculation
  • Margin Calculation
  • Market Slippage Protection
  • Liquidations
  • RabbitX Quantower
  • Fees
    • API Fees
  • Frequently Asked Questions
  • Token
    • Explore $RBX
    • Contract Details
  • API Documentation
    • Introduction
    • Rate Limits
    • Generate Your API Keys
      • Signing with API Key
    • Public Endpoints
      • Market Info
      • Trades
      • Orderbook
      • Funding Rate
      • Candles
    • Private Endpoints
      • Account Operations
      • Authentication
      • Orders
      • Fills
      • Positions
      • Profile
      • Balance History
      • Deadman Switch
    • Websocket
      • Trades
      • Orderbook
      • Market Info
      • Account
    • Responses Data Structure
  • Twitter
  • Discord
  • Audit
  • Bug Bounty
  • Bug Bounty Postmortem Report
  • Terms of Use
Powered by GitBook
On this page
  • Index Calculation Methodology
  • Fair Price Calculation
  • Sharp Price Drop Protection

Index Price

RabbitX uses an index price to calculate the hourly funding rate. The index price aims to track the underlying spot market price. For example, the Bitcoin index price tracks the price of spot Bitcoin on multiple spot exchanges.

Index Calculation Methodology

RabbitX index price is calculated as the median of the market prices of multiple constituent exchanges. Constituent exchange candidates include both centralised and decentralised exchanges.

Index price protection mechanism

  • Unresponsive price source: If any price source is unresponsive or returns an error, the price source is removed until we start receiving accurate prices again.

  • Single price source deviation: If any price source deviates more than 5% from the median, the price source is removed.

Fair Price Calculation

The fair price is used to calculate trader positions' unrealized profit and loss (P&L) and also liquidations. The unrealized P&L is used in the calculation of the trader's account equity and account margin.

FairPrice=Median(Price1,Price2,MarketPrice)FairPrice=Median(Price_1, Price_2, MarketPrice)FairPrice=Median(Price1​,Price2​,MarketPrice)

Price1=IndexPrice∗(1+Average(60min basis))Price_1=IndexPrice*(1+Average(60min\ basis))Price1​=IndexPrice∗(1+Average(60min basis))

Price2=IndexPrice∗(1+Average(30min basis))Price_2=IndexPrice*(1+Average(30min\ basis))Price2​=IndexPrice∗(1+Average(30min basis))

Note: 30min, 60min basis is clamped within +/- 1%.

Our fair price uses a robust methodology in order to protect traders against unfair liquidations caused by sharp price moves.

Sharp Price Drop Protection

RabbitX employs a 10% soft circuit breaker that utilizes the last index price recorded before any sharp drops (or increase) with a rolling window. This mechanism then triggers a cooldown period, allowing for market stabilization and informed trader responses.

This mechanism acts as a buffer, giving traders and liquidity providers a short window to assess the situation and make informed decisions. During the cooldown period, the index price uses the last index price before the soft circuit breaker was triggered to prevent market anomalies and protect against anomalous liquidity events.

Note:

RabbitX uses a proprietary protection mechanism to prevent and discard malformed, anomalous, or inaccurate data. For the avoidance of doubt, and in accordance with the RabbitX Terms of Service, RabbitX accepts no responsibility for the accuracy of the data received from any exchange, and carries no liability whatsoever for any claimed losses arising in connection with its calculation and publication of such index.

PreviousChart TraderNextVaults

Last updated 3 months ago