{s}omniamarkets

@somnia-chain/markets-sdk


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

Type Alias: LiquidationEvent

LiquidationEvent = object

Defined in: query.ts:3344

A liquidation event (mirror of the indexer LiquidationEvent entity). All numeric fields are raw units; any may be null when the source event didn't carry it.

Properties

id

id: string

Defined in: query.ts:3346

Event id (${txHash}_${logIndex}).


account

account: string

Defined in: query.ts:3348

Liquidated account (lowercased).


pool

pool: string | null

Defined in: query.ts:3350

Perp pool (lowercased); null when unlinked.


size

size: string | null

Defined in: query.ts:3352

Position size reduced (raw base units).


price

price: string | null

Defined in: query.ts:3354

Mark price used for the liquidation (raw quote per whole base).


penalty

penalty: string | null

Defined in: query.ts:3356

Penalty charged (raw collateral; reserved — not carried by current events).


badDebt

badDebt: string | null

Defined in: query.ts:3358

Bad debt absorbed by the insurance path (raw collateral).


timestamp

timestamp: string

Defined in: query.ts:3360

Timestamp (unix seconds) of the liquidation.


txHash

txHash: string

Defined in: query.ts:3362

Tx hash the liquidation landed in.