Omnibook

Oracle

–

Where this price comes from

Loading.

Show the method

How a trade settles

Recent settlements
ExpirySettled atHowSourcesRecord
Loading.

Check a settlement yourself

  1. Open its record and remove hash and signature.
  2. Write the rest as JSON with keys sorted and no spaces, and take its SHA-256. It must equal hash.
  3. Check signature (Ed25519, base64) over the hash bytes with the public key below.
  4. The values it lists must give its price by its stated method.
Key id–
Public key

How the oracle works

What an oracle is

A market’s oracle is its official price: the one price every trade on it settles on. Omnibook reads it from outside sources, venues and publishers anyone can check, so nobody on Omnibook can move it by trading here.

One price from several sources

Each source is read on Omnibook’s own clock. A source counts only while its reading is fresh (seconds old, by the venue’s own time where it gives one) and close to the others (inside a band around their median). The price is the median of the sources that count, and it needs a minimum number of them, the quorum. With fewer, the market has no price and trading pauses.

How a trade settles

A trade settles on the first official price at or after it ends. Nothing is averaged over time. With no price within 5 minutes of the end, the trade is void and both sides get their money back. GPU markets are daily: they settle on the first daily value dated at or after the end, and are void if none comes within 5 days.

Every settlement is signed

Each settlement, a void included, is a record signed with Omnibook’s Ed25519 key. It lists the market, the end time, every source’s value and whether it counted, and the price. Anyone can check one with this script (Node 18 or later):