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.
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| Direction | Barrier | Touched when | Long is paid more when |
|---|---|---|---|
| Up | Above the strike | Any price at or above the barrier | The price ends higher |
| Down | Below the strike | Any price at or below the barrier | The 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.
| Product | Cycle | Strike tick | Strike offset | Barrier offsets | Example, start at $60,030 |
|---|---|---|---|---|---|
| Knockout-BTC-Hourly | 1 hour | $50 | $0 | +$350 and −$350 | Strike $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 hour | Value | You are paid | Your P&L | Seller's P&L |
|---|---|---|---|---|
| Ends at $60,260, no touch | 0.60 | $60.00 | +$30.00 | −$30.00 |
| Ends at $60,390, no touch | 0.97 | $97.14 | +$67.14 | −$67.14 |
| Touches $60,400 at minute 28, ends at $60,260 | 0 | $0.00 | −$30.00 | +$30.00 |
| Ends at $60,000, under the strike | 0 | $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
| Side | Paid when |
|---|---|
| Long | The price ends between the strike and the barrier, with no touch |
| Short | The price ends behind the strike, or touches the barrier |
Compared with a Spread and a One-touch
| Feature | Spread | Knockout | One-touch |
|---|---|---|---|
| What counts | The end price | The end price, unless the barrier is touched | Any touch |
| Payout shape | A ramp between two strikes | A ramp from the strike to the barrier | $0 or $10 |
| A touch of the level | Has no effect | Pays $0 | Pays $10 |
| Settles early | No | No | Yes, on a touch |
| Typical view | Direction | Direction, but not too far | A large move |