Ostium Documentation
  • ๐Ÿ‘‹Welcome to Ostium
  • Getting Started
    • ๐Ÿ‘๏ธOverview
    • ๐ŸŽฏIntroduction: Our Thesis
    • ๐Ÿ’พGlossary
  • Ostium Trading Engine
    • ๐Ÿ๏ธOverview
    • ๐Ÿ“–Opening Trades
    • ๐Ÿฅ…Holding Trades
      • Funding Rate
      • Rollover Fee
    • ๐Ÿ“˜Closing Trades
    • ๐Ÿ“นStep-By-Step Tutorial
      • Connecting to Ostium
      • Fund Wallet/Account
      • Opening a Trade
      • Editing a Trade
      • Closing a Trade
    • ๐Ÿ“Order Types
  • ๐Ÿ“ˆStocks: Day Trading
  • Shared Liquidity Layer
    • ๐ŸฆOverview
    • ๐Ÿ’ฆLiquidity Buffer
    • ๐Ÿ“ŠMarket Making Vault
      • Deposit
      • Withdraw
      • OLP token
    • โ‰๏ธRisks
  • Supporting Infrastructure
    • ๐Ÿ—๏ธOverview
    • ๐Ÿ”ฎPrice Oracle
    • ๐Ÿ’ปAutomations
    • ๐Ÿ’พAPI & SDK
  • Security
    • ๐Ÿ”Smart Contract Audits
    • ๐Ÿ’ฐEconomic Audit
  • LEGAL
    • Terms of Use
    • Disclaimer
Powered by GitBook
On this page
  1. Ostium Trading Engine
  2. Holding Trades

Rollover Fee

Captures the externality of asset volatility. Compounded per block, this fee is applied synthetically to a traderโ€™s entire position size on non-crypto pairs and then deducted from position PnL. A Gelato automation keeps track of the Average True Range Volatility values on a per-asset basis and programmatically updates daily with volatility data inputs from Ostiumโ€™s oracle.

The volatility fee prices the risk of a greater probability of large swings in directional exposure resulting from periods of high volatility or sustained greater volatility on certain pairs.

This hyperbolic volatility fee formula is as follows:

fvolโ€…โ€Š=โ€…โ€ŠRvol(kvolโ€‰Vโ€‰(kvolโˆ’1)kvolโ€‰Vโˆ’vโ€…โ€Šโˆ’โ€…โ€Škvol+1)f_{\mathrm{vol}} \;=\; R_{\mathrm{vol}} \Biggl( \frac{k_{\mathrm{vol}}\,V\,(k_{\mathrm{vol}} - 1)} {k_{\mathrm{vol}}\,V - v} \;-\;k_{\mathrm{vol}}+1 \Biggr)fvolโ€‹=Rvolโ€‹(kvolโ€‹Vโˆ’vkvolโ€‹V(kvolโ€‹โˆ’1)โ€‹โˆ’kvolโ€‹+1)
  • V: The maximum allowable volatility in the protocol. Once this threshold is reached, all trading on the corresponding pair must be halted to ensure market stability.

  • R_vol: The maximum rollover fee, expressed as a percentage per hour, day, or any other time unit. This fee applies to unrealized PnL when volatility is at its maximum level, ensuring that participants pay the highest rollover costs under extreme conditions.

  • k_vol: The slope parameter controls the behavior of the volatility function.

PreviousFunding RateNextClosing Trades

Last updated 20 hours ago

๐Ÿฅ