Foundation Network
  • Foundation Network
    • Introduction
    • Trading
      • Perpetual Markets
      • Pricing
      • Funding Rate
      • Sub-accounts and Margin
      • Supported Order Types
      • Liquidation
      • Fee Structure
      • Deposit and Withdraw
    • Exchange Explorer
    • Foundation Points Program
    • Roadmap
    • FAQs
    • Smart Contracts
  • TUTORIALS
    • Setting up a Wallet
    • Setting up One Click Trading
    • Perpetual Trading
    • Exchange Explorer
  • Miscellaneous
    • Brand Assets
    • Links and Social Media
    • Terms of Service
    • Privacy Policy
  • Developers
    • Exchange API
      • Perpetual Trading
        • APIs
          • Market APIs
          • Trading APIs
          • History APIs
        • Streams
      • Spot Trading
      • SDK
    • AI Marketplace API
Powered by GitBook
On this page
  • Overview
  • Funding Payment
  • Funding Rate
  • Premium
  1. Foundation Network
  2. Trading

Funding Rate

Overview

Funding rates in crypto perpetual contracts, as implemented in Foundation, are a critical mechanism for aligning the price of the contract with the spot price of the underlying asset. This ensures market stability and reflects the true market value of the assets.

The premium component, however, varies according to the difference between the perpetual contract’s price and the underlying asset’s spot price, as determined by an oracle. When the contract's price is higher than the oracle price, the funding rate becomes positive, and long position holders pay those in short positions. Conversely, when the contract's price is below the oracle price, short position holders pay long position holders.

Funding Payment

The funding rate payment is automatically deducted from the account balance every hour, using a predefined formula.

Funding Payment = (-1) × S × P × R

Where

  • S is the size of the position (positive if long, negative if short)

  • P is the mark price for the market

  • R is the 1-hour funding rate

The 1-hour funding rate is determined by dividing the standard 8-hour funding rate by 8. The calculation of the 8-hour funding rate itself involves a more complex formula, which is a common industry practice.

Funding Rate

FundingRate(8h) = AveragePremium + clamp(Interest - AveragePremium, 0.05%, -0.05%)

Where

  • Average Premium is calculated Time-to-funding weighted Average of Premium Index of the 60 Premiums calculated over the course of the last hour

Average Premium=∑Premiumi∗i∑i\text{Average Premium} = \frac {\sum{Premium_i * i}}{\sum i}Average Premium=∑i∑Premiumi​∗i​
  • Interest Rate: 0.01%

  • The function clamp(x, min, max) means that:

    • if (x < min), then x = min;

    • if (x > max), then x = max;

    • if max ≥ x ≥ min, then return x.

  • A +/- 0.05% damper is also added

  • The Funding Rate 8 hours is capped within the range of capped-funding-rate number which is equaled to 0.75 x Maintenance Margin Fraction (MMF). The MMF will vary from market to market.

Premium

The main component of the funding rate is a premium that takes into account market activity for the perpetual. It is calculated for each market, every minute (at a random point within the minute) using the formula:

Premium=max⁡(0,Impact Bid Price−Index Price)−max⁡(0,Index Price−Impact Ask Price)Index Price\text{Premium} = \frac{\max(0, \text{Impact Bid Price} - \text{Index Price}) - \max(0, \text{Index Price} - \text{Impact Ask Price})}{\text{Index Price}}Premium=Index Pricemax(0,Impact Bid Price−Index Price)−max(0,Index Price−Impact Ask Price)​

Where the impact bid and impact ask prices are defined as:

  • Impact Bid Price = Average execution price for a market sell of the Impact Notional Value

  • Impact Ask Price = Average execution price for a market buy of the Impact Notional Value

  • Impact Notional Value = $200 / Initial Margin Fraction

PreviousPricingNextSub-accounts and Margin

Last updated 4 months ago