Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BookSide

Index

Constructors

constructor

Properties

bumpIndex

bumpIndex: number

freeListLen

freeListLen: number

freelistHead

freelistHead: number

includeExpired

includeExpired: boolean

isBids

isBids: boolean

leafCount

leafCount: number

nodes

nodes: any[]

now

now: BN

perpMarket

perpMarket: PerpMarket

publicKey

publicKey: PublicKey

rootNode

rootNode: number

Methods

[iterator]

  • [iterator](): Generator<PerpOrder, any, unknown>

getBest

getImpactPriceUi

  • getImpactPriceUi(quantity: BN): undefined | number
  • Return the ui price reached at quantity lots up the book; return undefined if quantity not on book

    Parameters

    • quantity: BN

    Returns undefined | number

getL2

  • getL2(depth: number): [number, number, BN, BN][]

getL2Ui

  • getL2Ui(depth: number): [number, number][]
  • Parameters

    • depth: number

    Returns [number, number][]

items

Generated using TypeDoc