Midway

Reference

Parameters

The numbers that define a Midway market, the book and an order, as the programs and the app apply them.

The book#

ParameterValue
Positions per book16
Active orders per wallet, per market1
Order terms, all encrypted6: side, size, minimum fill, limit, expiry, session
Computations at a time1, each numbered after the last
Recovery of a pending computationafter 10 minutes of on-chain time

Orders#

ParameterValue
Expiry in the app1 hour, 1 day or 1 week
Latest expiry in the app7 days ahead
Sessionregular hours, or around the clock
Size and minimum fillstock units, up to the stock's decimals
LimitUSDC per share, to six decimals

Assets#

ParameterValue
Quote assetUSDC, 6 decimals (Circle's mint on devnet and mainnet)
Stock decimals0 to 8, per stock

Oracle and fees, set per market#

ParameterValue
Price sourcethe stock's Pyth price update account on Solana, fully verified
Price ageat most the market's limit, never more than 300 seconds
Confidencewithin the market's bound, at most 5% of the price
Feebasis points per side, set when the market is created

The app's header shows the market's fee.

Session calendar#

ParameterValue
Sessions per publicationup to 32
Longest session8 hours
Longest validity40 days
Regular session9:30 to 16:00 New York; 13:00 on early-close days