@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?
optionalmarket?:string
Only fills in this market (bytes32 marketId, case-insensitive).
markets?
optionalmarkets?: readonlystring[]
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?
optionalpool?:string
Only fills on this pool address (case-insensitive).