Price Feeds & Sources
The page covers each price on Rails, how it's defined, it's source and where it's used.
Rails uses a specific price for each calculation. The Index Price anchors us to the wider market. The Mark Price estimates a fair contract value during trading. For options, the Forward Price reflects the futures curve at each expiry. At settlement, we use a defined index-price snapshot (i.e., the Settlement Price) to calculate the final payoff.
Index Price
Index Price generally refers to the composite spot price of an asset, calculated by taking a weighted average or median of spot prices across several major exchanges. At Rails, we source index price data from multiple reputable APIs to ensure robustness, reduce the risk of price manipulation, and maintain availability.
To ensure reliability and availability, our system uses a multi-sourced cascading fallback approach anchored primarily by an FCA-regulated volume weighted index:
CoinDesk Aggregate Index API - CCCAGG Used if the primary source becomes unavailable.
Hyperliquid Subscriptions API - Hyperliquid Acts as a secondary fallback to maintain price availability.
Kraken's Ticker (Level 1) API Acts as the last fallback to maintain price availability.
Forward Price
In derivatives, the Forward Price is the expected value of an underlying asset at a specific point in the future (i.e., the contracts expiry date). While the spot price tells you what an asset is worth now, the Forward Price accounts for market expectations, interest rates, cost of storage/carry, and yield over time. As a result, the forward price curve varies, depending on the time to maturity.
On Rails, forward prices are derived directly from real market expectations from Deribit’s Get Book Summary by Currency Public API endpoint. We use Black-76 (A variant of Black-Scholes) to price our Options, which inputs the Forward Price directly into the call & put formulas rather than the Spot price, which adjusts for the expected price move along the curve over time.
Mark Price
Mark Price is the estimated "fair value" of an open position, and calculated differently based on whether the product is a Perpetual or an Option:
Perpetuals Mark Price uses the median of three values:
The adjusted index price
The Rails order-book median
The external index price
The adjusted index is the index price plus a 150-second EMA of the gap between Rails' bid-ask midpoint and the index price. The Rails order-book median is the median of Rails' best bid, best ask, and last trade.
Options use the Black-76 model with zero interest rates to calculate mark price.
Rails sources implied volatility from Deribit, then prices each option from the forward price for it's expiry, and Rails enforces put-call parity and an intrinsic-value floor via the calculation.
Both products use an external index as an anchor. Options use an implied-volatility-based pricing model.
Settlement Price
For derivative contracts that expire (like Options), the Settlement Price is the fixed reference value used at expiry to close out contracts, and calculate final cash payoffs between buyers and sellers. (Learn more at Expiry & Settlement.)
The settlement Price on Rails is a single snapshot of the Index Price to calculate the payoff. At the moment settlement is executed, Rails takes the latest Index Price for the underlying asset from our primary source, CoinDesk Aggregate Index (CCIX). This single instantaneous value serves as the final price to calculate settlement payoffs across all open positions.
Where are these prices used?
Perpetuals & Options on Rails use these price indices for different reasons:
Index Price
Used for Funding Rate Calculation.
Used as the external anchor in Perpetuals Mark Price.
Used in short put/call margin calculations and as settlement reference.
Forward Price
N/A - Not used in Perpetuals.
A Black-76 input used for options pricing.
Mark Price
Used for margin requirements, unrealized P&L, liquidation prices and triggers, TP/SL triggers, market order pricing, and limit price safety checks
Used for Options Margin calculation and for Unrealized P&L.
Settlement Price
N/A - Not used in Perpetuals.
The underlying price at contract expiry.
Last updated
Was this helpful?

