Deri Protocol Docs
HomeMiningFuturesOptions
  • Genesis
    • Getting Started
  • πŸ“ˆTrading [Guide]
    • Deri Lite
      • Perpetual Futures
      • Everlasting Options
      • Power Perpetuals
    • Deri Pro
      • Perpetual Futures
      • Everlasting Options
      • Power Perpetuals
      • Gamma Swap
    • Arbitrage
  • πŸ“ΆMining [Guide]
    • AMM Liquidity Mining
    • DERI Liquidity Mining
  • How it works
    • Architecture
    • DPMM (Proactive Market Making)
    • Oracle
    • External Custody
    • Funding Fee
    • Leverage
    • Margin Requirement
    • Open Interest
    • Liquidation
    • Mining (AMM Liquidity Mining)
    • Limit Orders and Stop Orders
  • Governance
    • Deri Improvement Proposal (DIP)
  • Library
    • Derivative Products
    • Whitepaper
    • Code Audits
    • Tokenomics
    • List of Smart Contracts
    • Referral Program
    • Social Links & Media
    • Bridge
    • Trade on Demo Testnet
    • Academy
      • General
        • What are derivatives in DeFi?
        • What are the 3 biggest mistakes of trading derivatives?
        • Four tips for your trading
      • Perpetual Futures
        • General Intro about Perpetual Futures
        • How to Arbitrage
      • Everlasting Options
        • Introducing EverLasting Options
        • Numerical Examples of Everlasting Option Pricing
      • Power Perpetuals
        • Introducing Power Perpetuals
        • Hedging Impermanent Loss with Power Perpetuals (1)
        • Hedging Impermanent Loss with Power Perpetuals (2)
      • Gamma Swap
        • Introducing Gamma Swap
        • Gamma Swap by Deri Protocol
        • Hedging Impermanent Loss with Gamma Swap
        • A New Transaction Fee Algorithm for Gamma Swap
    • Glossary
    • ℹ️FAQs
      • Trading FAQ
        • Perpetual Futures
        • Everlasting Options
      • Mining FAQ
      • Mini-App FAQ
  • DEVELOPERS
    • How to find the Token ID associated with your account
    • Ideas to build
  • Support
    • Submit a question
    • Bug Report & Suggestions
    • Brand Asset
Powered by GitBook
On this page
  • What is Funding Fee?
  • Funding Fee of Perpetual Futures
  • Funding Fee of Everlasting Options

Was this helpful?

  1. How it works

Funding Fee

PreviousExternal CustodyNextLeverage

Last updated 2 years ago

Was this helpful?

What is Funding Fee?

Both Perpetual Futures and Everlasting Options are funding fee based. Funding fees are periodic payments between traders and or liquidity providers (i.e paid peer-to-peer). Hence, Deri Protocol takes no fees from funding fees as it is done directly between users. Depending on the derivative type, the direction and the total net position: traders and or liquidity providers will either pay or receive funding fees.

Funding Fee of Perpetual Futures

To balance the two sides of long and short positions, the pool will always apply a funding fee to the majority side. The funding fee mechanism of Deri Perpetual Futures is quite similar to that of the centralized exchanges (e.g. ). That is, the funding fee is proportional to the spread of the mark price over the index price, i.e. (mark-index). Every second, one long position pays one short position funding fee as below:

F=fβˆ—(Pβˆ’i)F=f*(P-i)F=fβˆ—(Pβˆ’i)

​where P is the mark price, i is the index price, and f is the funding fee coefficient.

Note: given (Pβˆ’i)(P-i)(Pβˆ’i) is determined by the net position, the funding fee is ultimately determined by the net position. Specifically, when l>sl>sl>s, the funding fee is positive (meaning long positions pay short positions), whereas when l<sl<sl<s, the funding fee is negative (short positions pay long positions).

This is mathematically equivalent to our funding mechanism prior to V2.1 (V1 and V2). Please refer to for the comparison and equivalence between the funding mechanisms of V2 and V2.1.

Funding Fee of Everlasting Options

For each second, assuming the total number of contracts in a long position is L while that in a short position is S. Then every single long contract will pay a funding fee per the following formula:

FundingFeefor7Day=OptionMarkPriceβˆ’PayoffFundingFeefor7Day=OptionMarkPrice-PayoffFundingFeefor7Day=OptionMarkPriceβˆ’Payoff​

where

Please note: 1. the Funding Fee is accrued on a per-second basis. That is, a funding fee of (Funding Fee for 7 Day)/604800 is accrued every second.

2. Unlike Perpetual Futures, theoretically the funding fee for Everlasting Options is always positive (i.e. long positions always pay Funding Fee to short positions).

While in theory the Funding Fee for Everlasting Options is always positive, it can be pushed to negative by trading actions in real trading.

For more details, refer to Deri's Everlasting Options Whitepaper

Payoff=max(spotβˆ’strike,0)forcallPayoff = max(spot - strike, 0) for call Payoff=max(spotβˆ’strike,0)forcall
Payoff=max(strikeβˆ’spot,0)forputPayoff = max(strike - spot, 0) for putPayoff=max(strikeβˆ’spot,0)forput
BitMEX
this article