sheaf

Predict

A market on every listed basket.

Every listed basket carries one question: will it beat SPY this week? Anyone can recompute the answer from public data; Panta runs the market as a USDC bonding curve.

Powered by Panta
Baskets with a market
—
Opening one on Panta
—
Ahead of SPY, trailing week
—
Panta
—

The questions

Value per share is read live at mainnet prices and dividend multipliers; the trailing week compares the recipe with SPY over the last five closes. Markets resolve from neither.

How a market resolves.

The week runs between two NYSE closes, each the last of its week. Trading stops at the first, so nobody trades once the measured week starts.

  1. Read navPerShare.listed and spy.adjClose from /api/nav/<basket>?at=<close> at both closes.
  2. Divide the later value by the earlier one, for the basket and for SPY.
  3. YES if the basket's ratio is greater. NO otherwise, including a tie.
  4. Read both at or after the market's resolution time, two hours after the second close, so both use the same data.
Which closes count

Normally Friday 16:00 New York time; Thursday's close when Friday is a holiday; 13:00 on an early-close day. The first close is the first such close at least a day after trading opens.

Stock tokens trade around the clock, but SPY only has a close at the close, so both sides are read there. Both are total return: adjusted closes reinvest dividends, the way an xStock's multiplier does.

A close is served once it is final, an hour after the bell. A time in the future is refused, never answered with today's number. A basket holding a company that is not listed yet has no such number, so it gets no market.

Every input is public, and the JSON lists a command to fetch each one. The only off-chain inputs are Jupiter's prices and the daily closes:

  • • The recipe, units of each stock per share: the basket account on Solana.
  • • Shares outstanding and what each vault holds: the share mint and vault token accounts.
  • • Each stock's dividend multiplier: the Token-2022 config on its mainnet mint.
  • • Daily closes and adjusted closes for every holding and SPY: Yahoo Finance's chart API.
  • • Live prices for the “now” figures: Jupiter's price API.

What /api/nav answers for a basket, live, trimmed

Reading…

Last week, resolved the way a market would be

Panta's catalog, as this key sees it.

Read live from GET /markets/ and GET /categories/ through Sheaf's server, read-only.

Every part of Panta's API, used.

Each write is a session: quote, build an unsigned transaction, the wallet signs, then Panta gets the signature. Sheaf shows Panta's answer at every step.

DiscoveryGET /markets/, GET /categories/“Panta's catalog” on this page, and every basket page
DataGET /markets/{id}/, GET /markets/{id}/trades/Positions on /portfolio
CreationPOST /markets/create/quote/ → /markets/create/build/ → wallet signs → POST /markets/register/Basket page, “Open it on Panta”
TradingPOST /primaryorderquote/ → /primaryorderbuild/ → wallet signs → /primaryordersubmit/ → /primaryorderverify/ → POST /trades/Basket page, “Take a side”
PositionsGET /positions/?wallet=/portfolio, Predictions
ClaimsPOST /claim/build/ → wallet signs → POST /trades//portfolio, Predictions
Creator feesPOST /claim/creator-fees/build/Basket page, “Creator fees”

Why the sandbox.

Opening a Panta market costs about 50 USDC plus SOL, and Sheaf spends no real money. A pk_test_ key runs the identical flow against Panta's fixtures, nothing on mainnet.

How the sandbox flow differs

Same endpoints, same request bodies, canned answers. Those answers are labeled wherever they appear, so a fixed sandbox quote is never passed off as this basket's price.

One thing in the sandbox flow is not Panta's: its builds return no real transaction, so the wallet signs a stand-in Sheaf compiles, a memo on a fresh devnet blockhash. That stand-in is never broadcast to any cluster. The signature reported to Panta's sandbox proves the flow, not a trade.

What changes for live.

One environment variable: a pk_live_ key in PANTA_API_KEY. Discovery, data, positions and quotes then read Panta's mainnet catalog.

Building, signing and reporting stay locked to the sandbox in Sheaf's server code until a market is sponsored, so the live demo cannot move USDC by accident.

Powered by Panta