@somnia-chain/markets-sdk / index / UnifiedOrderBook
Interface: UnifiedOrderBook
Defined in: packages/sdk/src/unified/structs.ts:82
An L2 book: [price, amount] pairs, best first, human units.
Properties
symbol
symbol:
string
Defined in: packages/sdk/src/unified/structs.ts:87
The tradable symbol this book view addresses (a NO book is the YES book inverted into NO terms).
bids
bids: [
number,number][]
Defined in: packages/sdk/src/unified/structs.ts:89
Buy side, best (highest) bid first.
asks
asks: [
number,number][]
Defined in: packages/sdk/src/unified/structs.ts:91
Sell side, best (lowest) ask first.
timestamp?
optionaltimestamp?:number
Defined in: packages/sdk/src/unified/structs.ts:93
When this view was assembled (ms) — local clock, not a block timestamp.
info?
optionalinfo?:unknown
Defined in: packages/sdk/src/unified/structs.ts:95
The native book (raw bigint levels; YES terms for binary).