Markets and cycles
Markets repeat on a fixed clock. Each cycle sets its own levels.
A market on Scalar is not a one-off question. It is a product that repeats on a fixed clock: every 5 minutes, every hour, every day or every week. Each run is a cycle. A new cycle opens the moment the last one closes, so there is always a live market to trade.
Products, cycles and markets
Three words describe what you trade:
| Word | Meaning | Example |
|---|---|---|
| Product | A payoff on one asset, on a fixed cycle length, with fixed rules for its levels. | Spread-BTC-Hourly |
| Cycle | One run of a product, from its start time to its end time. | The 14:00 to 15:00 UTC hour |
| Market | One cycle of a product with one set of levels. It has its own order book. | The 14:00 BTC Spread on $59,900 – $60,200 |
The API calls a market an instrument. A product can list more than one set of levels in each cycle. The hourly One-touch lists an up level and a down level, so each hour has two One-touch markets.
Cycles run back to back on a fixed grid in UTC. Hourly cycles start on the hour. 5-minute cycles start at :00, :05, :10 and so on.
Each cycle sets its own levels
The levels of a market are its strikes, barriers and range bounds. A cycle does not know them before it starts. It sets them from the price at its first second, in two steps:
- The settler reads the start price from Pyth and rounds it to the nearest multiple of the product's strike tick. A price exactly halfway rounds away from zero.
- It adds the product's fixed offsets to the rounded price.
The hourly BTC cycle opens at $60,030. The strike tick is $50, so the rounded start price is $60,050. The hourly Spread adds −$150 and +$150, so its strikes are $59,900 and $60,200. The hourly Range accrual adds ±$400, so its range is $59,650 to $60,450.
Because the levels follow the start price, every cycle opens close to the money. Close to the money means that the levels sit near the current price, so the outcome is open.
The testnet products
Testnet lists BTC first. Each product uses the BTC/USD price from Pyth.
| Product | Cycle | Strike tick | Levels, from the rounded start price |
|---|---|---|---|
| Above / Below | 5 minutes | $10 | Strike at the rounded start price |
| Above / Below | 1 hour | $50 | Strike at the rounded start price |
| Spread | 5 minutes | $10 | Lower strike −$50, upper strike +$50 |
| Spread | 1 hour | $50 | Lower strike −$150, upper strike +$150 |
| One-touch | 1 hour | $50 | Two markets: touch level +$350, and touch level −$350 |
| Range accrual | 1 hour | $50 | Range from −$400 to +$400 |
| Knockout | 1 hour | $50 | Two markets: strike at start, barrier +$350, and barrier −$350 |
More assets and longer cycles follow. The Data API and Explore in the app always list the live set.
When you can trade
You trade a market while its cycle runs, from its first second to its last. At the start, nobody knows the outcome, so prices sit in the middle of their range. As the cycle runs, the outcome gets clearer and the price moves toward the payout. In the last minutes of a cycle, a contract that is sure to pay $10 trades close to $10.
When the cycle ends, its market stops trading and the next cycle opens with new levels. A position in the old market stays open until it settles.
The prices a settler reads
Every price comes from Pyth, an oracle network. An oracle publishes market prices onchain. Scalar uses Pyth Lazer, which signs each price update. The Scalar contract checks the signature before it uses the price.
| Price | When it is read | Used by |
|---|---|---|
| Start price | The first second of the cycle | Every payoff, to set the levels |
| End price | The last second of the cycle, one second before the end | Above / Below, Spread, Knockout |
| Any price | Any second inside the cycle | One-touch, Range accrual and Knockout, to prove a touch or an exit |
Prices are read at whole seconds. A cycle from 14:00:00 to 15:00:00 reads its start price at 14:00:00 and its end price at 14:59:59.