Markets
Markets are listed off chain across three payoff kinds and five timeframes, and are created on chain lazily on their first fill.
Market grid & expiries
Every market combines one of three payoff kinds — Hit, Above, or Between — with one of five timeframes: daily, weekly, monthly, quarterly, and yearly. Every expires_at aligns to America/New_York midnight, and the node maintains the next 3 rolling expiries for each kind and timeframe (for example, daily lists today, tomorrow, and the day after).
In the markets grid, a Hit market that touches and resolves early remains visible in its cell — dimmed with its final payout (100 | 0) — until spot moves far enough away to reopen a fresh market at that strike and expiry.
Default BTC strike spacing
Strike spacing, rung count, and Hit reopen distance are configured via markets.env ({ASSET}_{KIND}_{TIMEFRAME}_STEP_USD, _RUNGS, and _REOPEN_STEP_PCT):
| Kind | Daily | Weekly | Monthly | Quarterly | Yearly |
|---|---|---|---|---|---|
| Hit step | $1,000 × 10 | $2,000 × 10 | $5,000 × 10 | $10,000 × 20 | $20,000 × 20 |
| Above step | $1,000 × 10 | $2,000 × 10 | $5,000 × 10 | $10,000 × 20 | $20,000 × 20 |
| Between band | $2,000 × 10 | $5,000 × 10 | $10,000 × 10 | $20,000 × 20 | $40,000 × 20 |
Market ID format
Market IDs embed the timeframe, start timestamp, and expiry so a reopened strike always receives a distinct ID:
btc-hit-<barrier>-up-daily-<start_ts>-<expires_at>btc-above-<timeframe>-<barrier>-<start_ts>-<expires_at>btc-between-<timeframe>-<lo>-<hi>-<start_ts>-<expires_at>
Off-chain listing & lazy on-chain creation
Newly listed markets are immediately tradable in the node’s memory and database without spending gas upfront. On the first matched trade, settleFill creates the market on chain inside the same transaction (passing MarketSpec: kind, backend open time startTs, expiry, barriers, and direction). Markets that never trade never touch the contract.
When a market resolves, the book locks immediately, all resting orders cancel, and new placements reject with market not open. The node submits on-chain settle only if open shares exist on the contract (or a fill is still settling); untouched or fully merged markets resolve off chain only. Winning shares redeem for $1.00 and losing shares pay $0 — see Settlement, Prices, and Balances.