# Fair Price Marking

Leverage that is inherent in derivative contracts, combined with the high volatility of cryptocurrencies, can lead to unwarranted liquidations. Lack of liquidity could further exacerbate this situation as price swings in a derivative contract relative to the underlying index could widen even further.

To avoid such issues and ensure a smooth trading experience, Delta Exchange marks all open position at Fair Mark Price instead of Last Traded Price. The Mark Price has lesser volatility and is more resilient against attempts to manipulate the market.

It is worth noting that Fair Price marking is relevant only for the computation of Unrealized PnL and Liquidation price. Realized PnL is based off actual traded prices and is thus not impacted by Mark Price.

## Impact Price

Before going on to explaing how Mark Price is computed, we first need to introduce the notion of Impact Price. This price tries to estimate the price at which a typical long or short position (called Impact Position) in the futures contract can be entered at any given time.

Impact Size, in terms of number is contracts to be traded, is provided in the specifications for each contract. It is easy to see that Impact Price is a function of: (a) Impact Size and (b) current state of the order book.

## Mark Price of Futures & Perpetual Contracts

The price of a futures contract converges to the underlying index price at the time of contract maturity, i.e.

At all other times, the price of a futures contract broadly moves in tandem with the price of the Underlying Index, with the difference between the two referred to as basis, i.e.

Since the Underlying Index is the foundation of the futures contract, it is logical to assume that

### Fair Basis Calculation

We first compute an annualised fair value basis, %AnnualisedBasis:

%AnnualisedBasis is computed only once every 5 seconds. Further, if the market is illiquid, i.e.

%AnnualisedBasis is not updated.

Next, %FairBasis is computed as the moving average of the 12 most recent values of %AnnualisedBasis. To avoid anomalous values, the %FairBasis is bounded by certain hard limits, which can vary from contract to contract.

Fair Basis is computed using %FairBasis as per the following equation:

Now that we have the Fair\ Basis, the Mark Price of the contract can be easily computed:

It is worth noting that only live positions are marked using the Mark Price. Thus, while unrealised PnL may swing with the Mark Price, realised PnL is unimpacted by Mark Price and depends only on the actual traded prices.

## Mark Price of Calendar Spread Contracts

The mark price of calendar spread contracts is computed as the difference of the fair prices of the two futures contracts that underlie the spread contract, with the fair prices computed as per the following formula:

Therefore, the mark price of a calendar spread contract can be written as:

## Mark Rate of BitMex Funding Rate Swap

Open positions in the BitMex Funding Rate swap product are marked at the annualised implied rate from the basis of the BTC futures of the same maturity as the swap. BitMex published fair basis of the relevant BTC futures. We use the annual rate implied by this fair basis as the mark rate.

The basis implied annual rate tends to become quite volatile as the futures contract heads into expiry. To keep the mark rate stable and avoid unnecessary liquidations, when the maturity of the swap contract is less tha 10 days away, we start using the basis implied annual rate of the next quarterly BTC futures.

## Fair Price Marking Leading into Settlement

Contracts on Delta Exchange are settled on the 30 minute TWAP (time-weighted average price) of its Underlying Index. To ensure that at the time of settlement there are no under-margined positions, the transition from using Underlying Index Price to TWAP of the Underlying Index Price in the calculation of Mark Price is done gradually.

Last updated