Prices

The line and the close come from the Slosh price keeper.

SourceThe coin's pools on Raydium, Meteora, Orca and PumpSwap, read on-chain
FrequencyOne sample every second
Each sampleThe liquidity-weighted median price across the pools read for that coin, in USD. With many markets running the keeper reads fewer pools per coin, down to its deepest pool alone
The lineThe first valid sample at or after lock
The closeThe last valid sample at or before the end of the round
Time limitEach must be within 5 seconds of its moment, or the round is refunded

A sample isn't valid when:

  • pools more than 3% away from the median hold over a quarter of the liquidity, or
  • the price is more than 20% away from the samples just before it. The coin then has no valid price until 3 good samples in a row.

Pools with less than $2,000 of depth aren't read.

Every sample behind a line and a close is published with the pools it came from, and kept for good. The other per-second samples are kept for 14 days. On real SOL, each price is sent to the Slosh program signed with the keeper's key, and the program accepts prices from no other key.

Check a result

  1. Open the round's samples at /api/rounds/<round number>/line.jsonl and /api/rounds/<round number>/close.jsonl. Round numbers are on Receipts.
  2. The line is the first valid sample at or after lock.
  3. The close is the last valid sample at or before the end of the round.
  4. Close above the line: Up wins. Below: Down wins. Equal: refund.