# Mark Price

The Everstrike Mark Price is a manipulation-resistant price that serves as a reference point for the liquidation of positions on Everstrike. All positions are Everstrike are liquidated according to the Mark Price. If they were liquidated according to the Last Traded Price, it would be possible for malicious traders to manipulate the market on Everstrike and liquidate other traders in the process. Since the Mark Price is fully manipulation-resistant, the aforementioned scenario cannot happen on Everstrike. The Everstrike Mark Price is calculated as the exponential moving average of the difference between the Everstrike Fair Price and the Everstrike Index Price.
Everstrike Index Price
For futures, the Everstrike Index Price is the average price at top Spot exchanges (with outliers excluded). It represents the general price in the market.
For options, the price is the intrinsic value of the option (based on the Index Price of the corresponding futures contract). Everstrike Fair Price
The Everstrike Fair Price is one of the following:
• The price X dollars deep in the book (Impact Price)
• A scaled multiple of the current best price (Scaled Best Price)
For bids, the formula is: `Fair Price = Max(Impact Price, Scaled Best Price)` For asks, the formula is `Fair Price = Min(Impact Price, Scaled Best Price)` Note that X might attain different values for different trading pairs. For Bitcoin options, the X is currently set to 0.1 BTC.
Scaled Best Price
The Scaled Best Price is calculated as follows. Bids: `Scaled Best Price = Multiplier * Best Bid` Asks: `Scaled Best Price = Multiplier * Best Ask` The Multiplier will also vary by pair. For Bitcoin options, it is currently set to 0.001.
Calculation of the Mark Price
Once the Fair Price and Index Price have been calculated, we can then calculate the The Mark Price: `Mark Price = Index Price + EMA_Y(Fair Price - Index Price)` EMA_Y is an exponential moving average of Y time periods. For Bitcoin options, the Y is currently set to 60. Each time period is 1 second. To combat price manipulation, the Mark Price can only ever be within a certain range of the Index Price. For futures, the range is a fixed percentage interval. For options, the upper end of the range is 0.1 times the price of the underlier, or the Liquidation Price of opening a short.
To ensure that the Mark Price is within the given range a dampener is applied.
Futures: `Mark Price = Min((1+Z)*Index Price, Max((1-Z)*Index Price, Mark Price))` where Z is a constant that varies by trading pair. For Bitcojn perpetual futures, Z is currently set to 0.005 (or 0.5%).
Options: `Mark Price = Min(0.10*Underlier Price, Mark Price)` Getting the value of each constant for a specific pair
The exact values of each constant for each pair can be obtained through the /pairs API endpoint. `X = fair_qty` `Multiplier = fair_multiplier` `Y = mark_price_ema_range` `Z = mark_price_max_deviation`