Skip to Content
Scalar

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:

WordMeaningExample
ProductA payoff on one asset, on a fixed cycle length, with fixed rules for its levels.Spread-BTC-Hourly
CycleOne run of a product, from its start time to its end time.The 14:00 to 15:00 UTC hour
MarketOne 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:

  1. 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.
  2. 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.

13:0014:0015:0016:00BTC priceStart price → strikeEnd price14:00 cycle trades14:00 cycle settles15:00 cycle trades

The testnet products

Testnet lists BTC first. Each product uses the BTC/USD price from Pyth.

ProductCycleStrike tickLevels, from the rounded start price
Above / Below5 minutes$10Strike at the rounded start price
Above / Below1 hour$50Strike at the rounded start price
Spread5 minutes$10Lower strike −$50, upper strike +$50
Spread1 hour$50Lower strike −$150, upper strike +$150
One-touch1 hour$50Two markets: touch level +$350, and touch level −$350
Range accrual1 hour$50Range from −$400 to +$400
Knockout1 hour$50Two 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.

PriceWhen it is readUsed by
Start priceThe first second of the cycleEvery payoff, to set the levels
End priceThe last second of the cycle, one second before the endAbove / Below, Spread, Knockout
Any priceAny second inside the cycleOne-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.

On this page