@somnia-chain/markets-sdk


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

Type Alias: FillsScope

FillsScope = FillsOptions & object

Defined in: packages/sdk/src/fills.ts:48

Scope for the per-account fill reads (SomniaMarketsClient.getUserFills / SomniaMarketsClient.countUserFills): a market (or markets) and/or pool predicate on top of FillsOptions.

Prefer market on binary. A binary pool is recycled by successive markets, so pool selects every life of that pool, while market selects exactly one market. On spot/perp the market id IS the pool address, so the two agree.

Type Declaration

market?

optional market?: string

Only fills in this market (bytes32 marketId, case-insensitive).

markets?

optional markets?: readonly string[]

Only fills in ANY of these markets (bytes32 marketIds, case-insensitive) — the batched form of market, for folding several markets from one read. An empty array matches nothing. Supplying market as well narrows to both (the intersection), so neither silently overrides the other.

pool?

optional pool?: string

Only fills on this pool address (case-insensitive).