Derive supports trading of the following three products:
- Options
- Perpetual futures
- Spot
Products
Options
Users can mint and trade European options for any expiry and strike price in supported markets, provided a supporting oracle data feed for the expiry exists. All options are settled to aSETTLEMENT_TWAP_PERIOD = 30 minute TWAP of the market’s base asset price. See the Settlement section for more detail.
Options on Derive are marked to the USD price of the underlying and are settled in USDC. E.g. BTC options are marked to the BTC/USD price. Base assets (serving as collateral) are marked to the USDC price.
Note the longest dated option supported is capped at MAX_EXPIRY = 400 days.
📘 Options are settled in the cash asset of the universe the option belongs to. At launch every universe uses USDC as its cash asset.
Perpetual Futures
Users can mint and trade perpetual futures for supported markets. To ensure perpetuals converge to their respective underlying, funding is exchanged between long and short positions. For example, if the perpetual is trading at a premium to the underlying, then longs will pay shorts funding. This encourages further shorts and decreases the differential between the perpetual and spot prices. Derive perpetuals are settled continuously. Specifically, whenever a user adjusts their position (say, via a trade or withdrawal) their unrealized funding and profit and loss is settled to the current perpetual price (not the spot price). Further, traders can have the settle function called on their account by other users (including themself!). Perpetual markets are keyed by(asset, risk universe). A perpetual is only tradable by subaccounts in the universe that lists it.
Marking Perpetuals
Perpetual contracts are marked to the the sum of the current spot price and aPERP_TWAP_LENGTH = 30 minute time weighted average price (TWAP) of the difference between the spot and perpetual prices. Specifically, the mark price of the perpetual used in Standard Margin and Portfolio Margin is given by
Spot Priceis the current mark price of the spot assetPerpetual Mark Priceis the current mark price of the perpetual asset.
1+PERP_MAX_PERCENT_DIFF =1.06 (1-PERP_MAX_PERCENT_DIFF = 0.94) of the spot price.
Deprecated Perpetuals
A perpetual can be retired by giving it afrozen_price. A frozen perpetual is force-closed at that price the next time the holding account is touched, and it is not routed into any universe.
