@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / react / useLiveUserFills

Function: useLiveUserFills()

useLiveUserFills(pool, user, limit?): LiveFill[]

Defined in: packages/sdk/src/hooks.ts:283

Fills user participated in. Watches pool while mounted when given; with pool === null it reads across whatever markets other hooks are watching (pair with useWatchUser for history).

Background acquisition failures use the configured debug/console warning channel. Use the corresponding useWatchMarketResult/useWatchUserResult/useWatchPriceResult hook for inline error UI.

Parameters

pool

string | null

user

string | undefined

limit?

number = 50

Returns

LiveFill[]

Throws

No Markets provider is mounted.