package lastcall // Market hours. US equities don't trade 24/7, and a stock can gap over a weekend // or overnight while positions are frozen. The off-chain updater (price bot) pushes // the real market status each cycle; the desk only accepts NEW perp opens while the // market is open — opening a leveraged position against a stale, closed-market price // is the gap-risk trap. Closing and liquidating stay allowed so no one is trapped, // and spot stays available (1:1 mint/burn at the reference, no leverage). var marketOpen = true // default open until the updater pushes the real status // SetMarketOpen is pushed by the off-chain updater (bot) from the live market state. func SetMarketOpen(cur realm, open bool) { assertUpdater(cur) marketOpen = open } // IsMarketOpen reports whether the desk is accepting new perp opens. func IsMarketOpen() bool { return marketOpen }