MarketDescriptor class

A live/settled market addressed by its human coordinates: a binary position (single strike + side) or a two-strike range position.

Mirrors the official tagged union: use MarketDescriptor.up / MarketDescriptor.down for a binary position (strike in USD, or 'reference' to trade at the market's on-chain reference price — the Polymarket-style anchor, derived from the exact previous-window oracle observation so consecutive windows chain settlement → next strike), and MarketDescriptor.range for a range paying out when settlement lands inside (lower, upper] (left-open, right-closed — the on-chain range key convention).

Constructors

MarketDescriptor.down({required String underlying, required Object expiryMs, required Object? strike, String? marketId})
const
MarketDescriptor.range({required String underlying, required Object expiryMs, required num lower, required num upper, String? marketId})
const
MarketDescriptor.up({required String underlying, required Object expiryMs, required Object? strike, String? marketId})
const

Properties

expiryMs → Object
Expiry in ms since epoch (int or BigInt).
final
hashCode → int
The hash code for this object.
no setterinherited
lower → num?
Range arm: lower strike bound in USD — finite, on the tick grid.
final
marketId → String?
Pin resolution to this exact ExpiryMarket object, skipping the underlying+expiry lookup — a caller that reviewed a specific market object mints against exactly that object, not whatever resolves at submit time.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → Side
'up', 'down', or 'range'.
final
strike → Object?
Binary arm: strike in USD (num), or the String 'reference'.
final
underlying → Side
final
upper → num?
Range arm: upper strike bound in USD — finite, on the tick grid, above lower.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → Side
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited