Skip to content

Solana DeFi Markouts

@jarryx@jarryx4 charts

What are Markouts?

This dashboard tracks the performance of liquidity providers on Solana DEXes by measuring their markouts for the SOL/USDC pair. Markouts are a metric used in HFT to gauge aggregate trade quality. They estimate the hypothetical realized PnL of a strategy if the trader exited every trade for the mid-market fair price at every fixed interval (this is the parameter labeled markout_interval). While it is not equivalent to true PnL, it's a very close approximation of PnL from trade execution (vs. PnL from holding position/risk)

Methodology

A markout m is defined with the following variables and is defined on a per trade level:

d: The maker's trade direction. d is 1 if the LP bought (i.e. the swap direction is sell) and -1 if the LP sold

p: The price of the trade

i: The reference price (or "mark" price) of the trade. This refers to the mid-market-price of the traded asset at some predefined interval in the future.

q: The quantity of the trade.

m = d * (i - p) * q

Note that if d is positive, this metric is positive if and only if i > p. The converse is true for when d is negative. The cumulative sum of markouts across all trades provides a rough indicator of LP performance. An upwards sloping markout graph indicates that the LP is retaining a percentage of the collected bid-ask spread over the given markout horizon. This implies that overall trade execution quality is healthy, but does not necessarily imply profitability