Skip to main content
Every order on the book carries a headline figure: what a taker actually nets by filling it, valued at the oracle price and after the desk fee. That is the number to read. It is not the order’s deviation from the oracle price, and the difference is not cosmetic.

Why deviation cannot answer the question

Deviation is what the maker controls and what the price band constrains, so it is the natural thing to publish. It just does not answer “is this worth taking”, for two independent reasons.
A JPYC-offered order priced 0.80% below the oracle price is cheap JPYC — the taker hands over less USDT than the market says, so they gain.A USDT-offered order priced 0.80% below the oracle price means the taker is handing over JPYC too cheaply — so their edge is negative.Same −0.80%, opposite outcome. A reader who has not tracked which token is on offer cannot tell the two apart.
An order sitting exactly on the oracle price is a 0.00% deviation and a −0.30% outcome at a 30 bps fee. Nothing about the deviation hints at that.

The definition

Edge is (value received − value paid) / value paid, with both legs valued at the oracle price:
The fee enters once, on the side the taker receives, because that is where the contract takes it.

The same spread, read both ways

At a 30 bps fee: Two rows share a −0.80%-ish deviation and land on opposite sides of zero. One row is at the oracle price exactly and still has negative edge. This is the reason the interface publishes edge instead.
Rondo’s book shows edge as the headline and keeps the raw deviation on hover — it remains the number the maker sees, since it is what they control and what the band constrains.

Pegged orders are simpler

A pegged order has no stored price, and the contract prices every fill so the taker’s realised edge lands exactly on the maker’s premium. So:
No derivation, no dependence on where the oracle happens to be. A 25 bps premium is a +0.25% edge at every price the feed can print. That guarantee is the reason pegged orders exist, and it is what a maker is paying for — see who actually funds it.

Partial fills quote their own outcome

Edge is a property of a rate, so a fixed order’s headline edge applies to any size taken from it. What changes with size is the absolute amount, not the percentage. Rondo’s fill ticket recomputes on the exact amounts being taken rather than reusing the headline, so a partial fill states its own result rather than inheriting a number computed for the whole order.

Reproducing it

Use the following integer math and rounding. The extra 1e4 scale preserves sub-basis-point detail:
Use this same function for the order book and every alerting process so they cannot disagree about what an order is worth.