Skip to Content
Scalar

Knockout

A ramp from strike to barrier, or $0 if the barrier is touched.

A Knockout reads two things: where the price ends, and whether it touched the barrier on the way. If the price never touches the barrier, the payout is a ramp from $0 at the strike to almost $10 just before the barrier. If the price touches the barrier at any second, the contract is knocked out and pays $0.

A Knockout is a view that a price will move, but not too far. The barrier takes away the biggest outcomes, so the long side costs less than a plain Spread.

In traditional finance, a Knockout with the barrier above the strike is an up-and-out call. With the barrier below the strike it is a down-and-out put.

$0$5$10Knocked outStrikeBarrier$60,050$60,400BTC price at the end of the cycle, barrier not touched

The rule

strike  = round(start price, strike tick) + strike offset
barrier = round(start price, strike tick) + barrier offset
value   = 0 if the barrier was touched
value   = clamp((end price − strike) ÷ (barrier − strike), 0, 1) if not
DirectionBarrierTouched whenLong is paid more when
UpAbove the strikeAny price at or above the barrierThe price ends higher
DownBelow the strikeAny price at or below the barrierThe price ends lower

A price exactly at the barrier counts as a touch. The end price is a price of the cycle too, so an end price at or past the barrier is a touch. The ramp gets close to $10 just before the barrier, but it never pays the full $10.

A touch decides the result, even if the price falls back into the ramp. A price that touches the barrier at minute 28 and ends 60% of the way up the ramp pays $0.

The levels

The hourly testnet product lists two markets each hour, one up and one down. Both have the strike at the rounded start price.

ProductCycleStrike tickStrike offsetBarrier offsetsExample, start at $60,030
Knockout-BTC-Hourly1 hour$50$0+$350 and −$350Strike $60,050. Barrier $60,400 or $59,700

Worked example

You buy 10 Long contracts on the hourly up market, strike $60,050 and barrier $60,400, at $3.00. You pay $30.00. The seller puts in $70.00.

What BTC does this hourValueYou are paidYour P&LSeller's P&L
Ends at $60,260, no touch0.60$60.00+$30.00−$30.00
Ends at $60,390, no touch0.97$97.14+$67.14−$67.14
Touches $60,400 at minute 28, ends at $60,2600$0.00−$30.00+$30.00
Ends at $60,000, under the strike0$0.00−$30.00+$30.00

How it settles

The settler reads three prices from Pyth: the start price at the first second of the cycle, the end price at its last second, and one more price from any second inside the cycle. The third price is the one that can prove a touch.

  • A Knockout cannot settle before the cycle ends, because every proof needs the end price.
  • If the third price touches the barrier, the proof has the top score. The market resolves at $0, 1 minute after the proof.
  • If not, the settler pays the ramp on the end price. The score is the share of the short side. The challenge window runs until one window after the cycle ends.
  • During the window, anyone who has a Pyth price that touches the barrier can submit it. A touch has the top score, so it replaces the first proof.

Sides in the app

SidePaid when
LongThe price ends between the strike and the barrier, with no touch
ShortThe price ends behind the strike, or touches the barrier

Compared with a Spread and a One-touch

FeatureSpreadKnockoutOne-touch
What countsThe end priceThe end price, unless the barrier is touchedAny touch
Payout shapeA ramp between two strikesA ramp from the strike to the barrier$0 or $10
A touch of the levelHas no effectPays $0Pays $10
Settles earlyNoNoYes, on a touch
Typical viewDirectionDirection, but not too farA large move

On this page