@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / PositionMarkState

Type Alias: PositionMarkState

PositionMarkState = "live" | "won" | "lost" | "voided" | "settling"

Defined in: packages/sdk/src/derivedReads.ts:1112

How a position should be marked, given its market's lifecycle:

  • "live" — still trading; mark to the live book.
  • "won" / "lost" — resolved; this outcome pays 1 or 0.
  • "voided" — cancelled; collateral refunds, zero PnL.
  • "settling" — expired but unresolved; no reliable mark exists.