Class DLOB

Hierarchy

  • DLOB

Constructors

Properties

initialized: boolean = false
maxSlotForRestingLimitOrders: number = 0
openOrders: Map<MarketTypeStr, Set<string>> = ...
orderLists: Map<MarketTypeStr, Map<number, MarketNodeLists>> = ...

Methods

  • Parameters

    • marketIndex: number
    • slot: number
    • marketType: MarketType
    • oraclePriceData: OraclePriceData
    • isAmmPaused: boolean
    • minAuctionDuration: number
    • makerRebateNumerator: number
    • makerRebateDenominator: number
    • fallbackAsk: BN
    • fallbackBid: BN

    Returns NodeToFill[]

  • initializes a new DLOB instance

    Returns

    a promise that resolves when the DLOB is initialized

    Parameters

    Returns Promise<boolean>

  • Parameters

    • order: Order
    • userAccount: string
    • slot: number
    • Optional onInsert: OrderBookCallback

    Returns void

  • Parameters

    • order: Order
    • userAccount: PublicKey
    • slot: number
    • cumulativeBaseAssetAmountFilled: BN
    • Optional onUpdate: OrderBookCallback

    Returns void

Generated using TypeDoc