Market Durations#
Each Seesaw market has a configured duration: how long it trades before its expiration. The default is 15 minutes (900 seconds). A market's lifetime is measured from the on-chain time at which its creation transaction succeeds.
Creation time and identity#
Market identity and lifecycle time are independent. Before preallocation, the creator chooses a positive preparation timestamp in microseconds as the market's stable PDA identity. It distinguishes preparations for the same feed, duration and creator, but it does not set the market's start, expiration, or opening price.
When CreateMarket succeeds, the program records the current on-chain Clock as
created_at and t_start, then sets t_end = t_start + duration_seconds.
Market preparation and creation can happen at any point; there is no epoch
boundary or creation-time window. A retry reuses the same preparation identity.
For example, a 15-minute market created at 10:07 expires at 10:22. Another market for the same feed, duration, and creator can be created at 10:10 with a different preparation identity and expire at 10:25.
At creation, the opening price must come from an authenticated Pyth Pull update
that is no more than 60 seconds old at the landing Clock time and is not
future-dated. This freshness rule does not prove that the supplied update is
the latest available update. End-price capture keeps its separate firstness
rule: the accepted end update must be the first authenticated update at or
after the stored t_end, with its authenticated predecessor before t_end.
Why 15 minutes is the default#
The default balances several competing pressures:
- Meaningful price movement. Liquid crypto assets typically move enough in 15 minutes for the UP/DOWN outcome to reflect signal rather than pure noise.
- Engagement. A 15-minute trading window offers a useful balance between short feedback and time for traders to participate.
- Liquidity concentration. A 15-minute window gives orders time to accumulate, producing better depth than minute-scale markets.
- Operational cost. Creation and settlement work follows actual market activity instead of a protocol-wide time cadence.
- Oracle resilience. A 15-minute window spans many Pyth updates, leaving room to capture the required end snapshot after the market expires.
Shorter durations (for example, one minute) are dominated by noise and require faster settlement operations; much longer durations slow feedback and capital turnover. Fifteen minutes is the default, while the market's actual lifetime is always anchored to its successful creation time.
Configurable durations#
The default is not a hard rule. Markets accept a configurable duration between
60 seconds (MIN_MARKET_DURATION) and 7 days / 604,800 seconds
(MAX_MARKET_DURATION). Because a market's on-chain address is derived from
its feed, duration, preparation identity, and creator, multiple markets with
the same feed and duration can coexist when their preparation identities
differ.
Admins can update the allowed duration range after deployment via
UpdateOperationalParams (0x2A) (rate-limited, 1-hour cooldown).
Duration does not define a global market cadence or limit on the number of markets. Clients display each market's stored start and end times. For the market lifecycle from creation through settlement, see How It Works. For oracle sampling, see Design → Price Oracle. For where collateral lives across a market's lifetime, see How It Works → Flow of Funds.