@somnia-chain/markets-sdk / react / UseWatchPerpMarketsOptions
Interface: UseWatchPerpMarketsOptions
Defined in: packages/sdk/src/hooks.ts:781
Options for useWatchPerpMarkets and useWatchPerpMarketsResult.
Extends
Properties
chainId?
optionalchainId?:number
Defined in: packages/sdk/src/hooks.ts:77
Numeric chain id whose engine answers this hook. Defaults to the primary chain.
Inherited from
enabled?
optionalenabled?:boolean
Defined in: packages/sdk/src/hooks.ts:783
Hold the watch while mounted. Default true; false releases it without unmounting.
marginBank?
optionalmarginBank?:string
Defined in: packages/sdk/src/liveTail.ts:323
The MarginBank to read the plane's wiring from, normally UNNECESSARY: the address
comes from an indexed perp market row, and MarginBank.getSystemConfig() reports the
LiquidationEngine from there. Pass it for the one case that cannot cover — an indexer
with no perp rows at all, where there is nothing to ask.
It fills in wiring the plane LACKS, and only that: it is used when the indexer names no bank, including on a scope a read hook hydrated moments earlier with no hint to give. It never overrides a bank the indexer DID name — the hydrated rows are that bank's plane, so streaming another one would splice two venues into one feed — and it never switches a plane that is already streaming.