Reference
Parameters
The numbers that define a Midway market, the book and an order, as the programs and the app apply them.
The book#
| Parameter | Value |
|---|
| Positions per book | 16 |
| Active orders per wallet, per market | 1 |
| Order terms, all encrypted | 6: side, size, minimum fill, limit, expiry, session |
| Computations at a time | 1, each numbered after the last |
| Recovery of a pending computation | after 10 minutes of on-chain time |
Orders#
| Parameter | Value |
|---|
| Expiry in the app | 1 hour, 1 day or 1 week |
| Latest expiry in the app | 7 days ahead |
| Session | regular hours, or around the clock |
| Size and minimum fill | stock units, up to the stock's decimals |
| Limit | USDC per share, to six decimals |
Assets#
| Parameter | Value |
|---|
| Quote asset | USDC, 6 decimals (Circle's mint on devnet and mainnet) |
| Stock decimals | 0 to 8, per stock |
Oracle and fees, set per market#
| Parameter | Value |
|---|
| Price source | the stock's Pyth price update account on Solana, fully verified |
| Price age | at most the market's limit, never more than 300 seconds |
| Confidence | within the market's bound, at most 5% of the price |
| Fee | basis points per side, set when the market is created |
The app's header shows the market's fee.
Session calendar#
| Parameter | Value |
|---|
| Sessions per publication | up to 32 |
| Longest session | 8 hours |
| Longest validity | 40 days |
| Regular session | 9:30 to 16:00 New York; 13:00 on early-close days |