@somnia-chain/markets-sdk / index / UnifiedOrderBook
Interface: UnifiedOrderBook
Defined in: packages/sdk/src/unified/structs.ts:142
An L2 book: [price, amount] pairs, best first, human units.
Properties
blockNumber?
optionalblockNumber?:bigint
Defined in: packages/sdk/src/unified/structs.ts:144
Pinned chain block or scope applied-event watermark; absent without provenance.
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:149
The tradable symbol this book view addresses (a NO book is the YES book inverted into NO terms).
chainId
chainId:
number
Defined in: packages/sdk/src/unified/structs.ts:151
Numeric chain id the market lives on.
bids
bids: [
number,number][]
Defined in: packages/sdk/src/unified/structs.ts:153
Buy side, best (highest) bid first.
asks
asks: [
number,number][]
Defined in: packages/sdk/src/unified/structs.ts:155
Sell side, best (lowest) ask first.
timestamp?
optionaltimestamp?:number
Defined in: packages/sdk/src/unified/structs.ts:157
When this view was assembled (ms) — local clock, not a block timestamp.
info?
optionalinfo?:unknown
Defined in: packages/sdk/src/unified/structs.ts:159
The native book (raw bigint levels; YES terms for binary).