Midway

Guides

Market administration

For the market administrator's wallet: withdrawing fees, publishing the session calendar and initializing the book.

The app shows a Market administration panel when the connected wallet is the market's administrator. Each action is a transaction the administrator signs; the programs check the signer against the market's fixed administrator.

Fees#

The panel shows the fees accrued from both sides of every fill. Withdraw fees moves them to the administrator's own USDC token account, creating it if needed.

Only fees can be withdrawn this way. The administrator has no instruction that moves trader balances or unlocks orders.

Session calendar#

Regular-hours orders cross only inside the published calendar. Publish the next five weeks builds the US regular sessions for the coming 35 days from the exchange calendar (holidays and early closes included) and publishes them on chain.

The program accepts up to 32 sessions, none longer than eight hours or overlapping, valid for at most forty days. Publish again before the calendar runs out; the panel shows when it does.

The book#

A market's encrypted book is initialized once, with a computation that seals all sixteen empty positions. If that computation was recovered after timing out, Retry book initialization queues it again.

Service health#

The panel also shows the service's own checks: the database, the Solana RPC and the background worker that indexes the chain and runs matching rounds.