Perpetual Funding Rate | dYdX Help Center (2024)

Perpetual contracts are inspired by traditional futures contracts, but differ in that there is no expiry date and therefore no final settlement or delivery. Funding payments are therefore used to incentivize the price of the perpetual to trade at the price of the underlying.

Funding is calculated algorithmically based on the Index Price and sampled Mid-Market Prices for the perpetual. When the rate is positive (perpetual trades at a premium relative to index), traders who are long will make payments to traders who are short. When the rate is negative (perpetual trades at a discount relative to index), this is reversed and shorts will pay longs. Traders make or receive payments in proportion to the size of their market position. These payments are exchanged solely between traders, and are neither paid nor received by the exchange.

The purpose of the funding rate is to keep the price of each perpetual market trading close to its Index Price. When the price is too high, longs pay shorts, incentivizing more traders to sell / go short, and driving the price down. When the price is too low, shorts pay longs, incentivizing more traders to buy / go long, driving the price up.

Funding payments can be found by calling Get /v3/funding and the predicted funding rate can be found by calling Get v3/markets. Historical funding rates can be found by calling Get v3/historical-funding.

Funding Interval

Funding payments are exchanged between long and short traders to encourage the price of a perpetual contract to trade close to the price of the underlying. Funding payments are made in USD (USDC). The payments are credited or debited at the start of each hour, and are included in the Realized PNL for the position. Thus, the dYdX funding rate is usually represented as a 1-hour rate, which represents the return a position may expect to earn or pay every hour.

When calculating the funding rate, the premium is scaled to have a realization period of 8 hours. That means, for example, that if a certain perpetual market trades consistently at a 0.1% premium relative to the underlying, long traders may expect to pay ~0.1% every 8 hours, and short traders may expect to earn a ~0.1% return every 8 hours (not accounting for the interest rate component).

Funding Payment Calculation

At the start of each hour, an account receives USDC (if F is positive) or pays USDC (if F is negative) in an amount equal to:

Where:

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

  • P is the oracle (index) price for the market

  • R is the funding rate (as a 1-hour rate)

Funding Rate Calculation

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

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

And the impact notional amount for a market is:

Impact Notional Amount = 500 USDC / Initial Margin Fraction

For example, at a 10% initial margin fraction, the impact notional value is 5,000 USDC.

At the end of each hour, the 1-hour premium is calculated as the simple average (i.e. TWAP) of the 60 premiums calculated over the course of the last hour. In addition to the premium component, each market has a fixed interest rate component that aims to account for the difference in interest rates of the base and quote currencies. The funding rate is then:

Funding Rate = (Premium Component / 8) + Interest Rate Component

Currently, the interest rate component for all dYdX markets is 0.00125% (equivalent to 0.01% per 8 hours). For markets with no interest rate component, the funding rate is simply the one-hour premium.

Index Price for Funding

Funding payments based on funding rate calculations make use of an index price given by a relevant oracle for the asset (see contract specs for more detail on the index price inputs for each asset).

Funding Rate Bounding

The minimum funding rate is -4.00% and the maximum funding rate is 4.00%. There is a limit to how quickly the admin can change the funding rate, but this does not take effect during normal operation.

See Below for a Video Explaining the Above

You can read more about our authors here.

As an enthusiast deeply entrenched in the realm of cryptocurrency derivatives and perpetual contracts, I bring forth a wealth of firsthand expertise and a comprehensive understanding of the intricate mechanics governing these financial instruments. Having navigated the complexities of trading platforms, algorithmic calculations, and market dynamics, I stand poised to shed light on the multifaceted world of perpetual contracts and funding rates.

Perpetual contracts, a fascinating evolution inspired by traditional futures contracts, introduce a novel dimension to trading by eliminating expiry dates and final settlements. Instead, they rely on funding payments to align the perpetual's price with that of the underlying asset. This ingenious mechanism incentivizes traders to maintain equilibrium, ensuring the perpetual closely tracks the Index Price.

Let's delve into the concepts encapsulated in the provided article:

  1. Perpetual Contracts:

    • Inspired by traditional futures contracts.
    • No expiry date or final settlement.
    • Relies on funding payments to align with the underlying asset's price.
  2. Funding Payments:

    • Incentivize perpetual price alignment with the underlying asset.
    • Calculated algorithmically based on Index Price and Mid-Market Prices.
    • Positive rate: Longs pay shorts; negative rate: Shorts pay longs.
    • Payments proportional to market position size.
    • Exchanged solely between traders, not involving the exchange.
  3. Funding Rate:

    • Aims to keep perpetual market price close to the Index Price.
    • Positive rate drives price down; negative rate drives price up.
    • Obtained by calling Get /v3/funding for payments and Get v3/markets for the predicted rate.
    • Historical rates retrievable via Get v3/historical-funding.
  4. Funding Interval:

    • Payments credited or debited hourly in USD (USDC).
    • Included in Realized PNL (Profit and Loss) for positions.
    • Funding rate represented as a 1-hour rate, indicating returns or payments every hour.
  5. Funding Payment Calculation:

    • Amount (USD) = (-1) × Size × Oracle Price × Funding Rate.
    • Size is position size (positive for long, negative for short).
  6. Funding Rate Calculation:

    • Premium component calculated every minute based on market activity.
    • Premium = (Max(0, Impact Bid Price - Index Price) - Max(0, Index Price - Impact Ask Price)) / Index Price.
    • Hourly premium calculated as the average of 60 premiums over the last hour.
    • Interest rate component added to premium for the funding rate.
  7. Index Price for Funding:

    • Derived from an oracle relevant to the asset.
  8. Funding Rate Bounding:

    • Minimum rate: -4.00%, maximum rate: 4.00%.
    • Admin can change rates within limits, with restrictions during normal operation.

This intricate interplay of funding rates, perpetual contracts, and market dynamics reflects the sophisticated design aimed at maintaining stability and fairness in cryptocurrency derivative trading.

Perpetual Funding Rate | dYdX Help Center (2024)
Top Articles
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 6723

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.