Relatick
Use Relatick

Understanding your returns

There are two metrics we track in our UI.

  • Markout: how much your bins made or lost on each swap, measured against the pool's reference price a few minutes after the trade. Positive means you traded at a good price; negative means traders got ahead of the market at your expense.
  • Trading PnL: how much more or less you have than if you had simply held the tokens you deposited, with both valued at today's prices. The same trades drive both.

Markout

Markout values each trade a fixed time after it executes, at the pool's reference price at that moment. For every swap that crossed your bins, it takes the tokens the swap moved in and out of them and values them at the reference price that long after the trade. The time is the horizon: 1, 5 or 30 minutes. The app shows 5 minutes unless you pick another.

Markout(h) = sum over swaps of (Δtoken0 × ref(t+h) + Δtoken1) × price1(t+h)

where t is when the swap executed, h the horizon, ref the pool's reference price in token1 per token0, and price1 token1's USD price.

Example. You deposit 10 ETH and 20,000 USDC, worth $40,000 with ETH at $2,000. Traders buy 5 ETH from your bins at $2,010 while the reference is $2,000: your bins give up 5 ETH and receive 10,050 USDC, leaving you 5 ETH and 30,050 USDC. The extra $50 is the spread. Five minutes later:

Reference after 5 minutes
Markout 5m
What happened
$2,000 (unchanged)
+$50
You kept the spread.
$2,006
+$20
The price moved the trader's way, but by less than the spread.
$2,020
−$50
The trader bought ahead of a move: you were picked off.

With USDC as token1, the last row is −5 × 2,020 + 10,050 = −50.

So markout counts the spread you earned and also whether the trades were worth taking. Fees the curator and Relatick take never reach your bins, so markout is already after their shares; see Fees.

Markout isn't realized profit. Nothing is sold at the later reference price: markout values each trade as if your bins had closed it out then. Added up over a pool's past trades, it estimates what that trading flow is worth to LPs, which makes it a guide to what providing liquidity there might earn, not a promise that it will.

{% hint style="warning" %} Markout is only as reliable as the pool's price source. It's measured against the pool's own reference price. If that price is wrong, every markout figure is wrong with it: a positive markout can hide losses to traders who know the real price. {% endhint %}

Markout APR divides markout by the liquidity that earned it and annualizes it. The APR on the pools list is the pool's Markout APR over the period and at the horizon chosen in Settings: 24 hours, 7 days, 30 days or all time, at 1, 5 or 30 minutes. The default is 7 days at 5 minutes. It divides by the liquidity of the bins that traded in the period, so liquidity parked in bins no swap reached doesn't dilute it (the API's markoutByWindow.<period>.byHorizon.<horizon>.aprBps). On a pool's My performance tab, Markout and its APR cover your position over the selected period, divided by your position value. These are past figures, not a forecast: future trades can be worth more or less to LPs. They also leave out price moves after the horizon, so they aren't your total return.

A swap is counted once the pool has a reference price and token prices for its horizon. A figure shows as unavailable when less than 70% of the period's volume can be valued. The pools-list APR is also unavailable when no bin traded at all (markout is then $0). It has no minimum liquidity, so a pool where only a small bin traded can show a very large APR.

Trading PnL

Every trade changes your token mix. When traders buy ETH from your bins, you're left with less ETH and more USDC. Trading PnL is the value of what you hold now minus the value of what you deposited, both at today's prices:

Trading PnL = Δtoken0 × price0(now) + Δtoken1 × price1(now)

where Δ is how much of each token trades added to or took from your bins, including the spread they leave there. It can be positive or negative.

Example. Take the same trade: after it you hold 5 ETH and 30,050 USDC instead of the 10 ETH and 20,000 USDC you deposited. Then the price moves:

ETH price
Your position
If you had held
Trading PnL
Vs. your deposit
$2,200 (+10%)
$41,050
$42,000
−$950
+$1,050
$2,000 (unchanged)
$40,050
$40,000
+$50
+$50
$1,800 (−10%)
$39,050
$38,000
+$1,050
−$950

In the first row, −5 × 2,200 + 10,050 = −950.

If the price doesn't move, trading PnL is just that spread. Had nobody traded, your position would match holding in every row and trading PnL would be $0. Trading PnL compares you with holding, not with your deposit: in the last row you're $1,050 ahead of holding but still down $950.

Your own deposits and withdrawals aren't gains or losses. Each one starts a new comparison from what you hold at that point, and the changes before it are valued at the prices when you made it.

Why price moves can outweigh markout

Markout stops counting at its horizon, but the tokens you received keep moving with the market. If the token bought for $999 is worth $1,000 five minutes later, the markout is $1; if it's later worth $1,010, you're $11 above its purchase cost; at $990, $9 below, despite the $1 of markout. In the example above, a +$50 markout becomes −$950 of trading PnL after a 10% rise.

That's why a good strategy with positive markout can still lose money for a while: every trade leaves you holding more of one token, and nobody knows where prices go next. In the short run, price moves dominate. Over many trades, markout adds up while price moves partly cancel out, so in a correctly set-up pool, markout should dominate.

{% hint style="warning" %} Positive markout doesn't mean you're making money. You can still lose money providing liquidity, including your entire deposit. See Risks and safeguards. {% endhint %}

Related: Fees · Risks and safeguards.

Last updated 29 days ago