@somnia-chain/markets-sdk / index / ClosingPriceState
Interface: ClosingPriceState
Defined in: packages/sdk/src/orders.ts:484
A pool's closing-price capture state (see Trader.captureClose). state:
"OPEN": no capture yet — post-expiry removals of alive-at-close orders revertCloseNotCapturedwhile the market is not terminal."CAPTURED": two-sided capture stored;closingMidis the bid/ask mid in raw book-price units (scaleoneCollateral)."CAPTURED_DEGENERATE": capture ran but a side had no closing order — no mid; a void falls back to uniform."TERMINAL_LATCH": a removal observed the market already terminal; the lock lifted without a capture.
Properties
closingMid
closingMid:
bigint
Defined in: packages/sdk/src/orders.ts:486
Captured closing mid in raw book-price units (0 unless state === "CAPTURED").
oneCollateral
oneCollateral:
bigint
Defined in: packages/sdk/src/orders.ts:488
The pool's price scale (10 ** collateralDecimals).
state
state:
"OPEN"|"CAPTURED"|"CAPTURED_DEGENERATE"|"TERMINAL_LATCH"
Defined in: packages/sdk/src/orders.ts:490
Decoded close state.