The calculation of Mark Price involves Index Price, which is designed to represent the true value of the underlying asset price.
Mark Price = Median (Price1, Price2, Last Price)
where,
Price 1 = Price Index * [1 + Last Funding Rate * (Time Until Next Funding / Funding Period)]
Price 2 = Index Price + Moving Average (30 seconds basis), where Basis = (Best Bid + Best Ask) / 2 - Index Price
Note: Moving Average (30 seconds basis) averages basis calculated per each second over 30 Seconds.
Note: Mark Price may deviate from spot price under extreme market conditions. In that scenario, Flipster may enforce that Mark Price = Perpetual Swap List Price so as to protect trader interests.