Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PerpMarket

Index

Constructors

constructor

  • new PerpMarket(publicKey: PublicKey, baseDecimals: number, quoteDecimals: number, decoded: any): PerpMarket

Properties

_minOrderSize

_minOrderSize: undefined | number

_tickSize

_tickSize: undefined | number

asks

asks: PublicKey

baseDecimals

baseDecimals: number

baseLotSize

baseLotSize: BN

baseLotsToUiConvertor

baseLotsToUiConvertor: number

bids

bids: PublicKey

eventQueue

eventQueue: PublicKey

feesAccrued

feesAccrued: I80F48

lastUpdated

lastUpdated: BN

liquidityMiningInfo

liquidityMiningInfo: { maxDepthBps: I80F48; mngoLeft: BN; mngoPerPeriod: BN; periodStart: BN; rate: I80F48; targetPeriodLength: BN }

Type declaration

longFunding

longFunding: I80F48

mangoGroup

mangoGroup: PublicKey

metaData

metaData: MetaData

mngoVault

mngoVault: PublicKey

openInterest

openInterest: BN

priceLotsToUiConvertor

priceLotsToUiConvertor: number

publicKey

publicKey: PublicKey

quoteDecimals

quoteDecimals: number

quoteLotSize

quoteLotSize: BN

seqNum

seqNum: BN

shortFunding

shortFunding: I80F48

Accessors

minOrderSize

  • get minOrderSize(): number

tickSize

  • get tickSize(): number

Methods

baseLotsToNative

baseLotsToNumber

  • baseLotsToNumber(quantity: BN): number

getCurrentFundingRate

loadAsks

  • loadAsks(connection: Connection, includeExpired?: boolean): Promise<BookSide>

loadBids

  • loadBids(connection: Connection, includeExpired?: boolean): Promise<BookSide>

loadEventQueue

loadFills

  • loadFills(connection: Connection): Promise<ParsedFillEvent[]>

loadOrdersForAccount

  • loadOrdersForAccount(connection: Connection, account: MangoAccount, includeExpired?: boolean): Promise<PerpOrder[]>

parseFillEvent

  • parseFillEvent(event: any): any

priceLotsToNative

priceLotsToNumber

  • priceLotsToNumber(price: BN): number

toPrettyString

uiQuoteToLots

  • uiQuoteToLots(uiQuote: number): BN

uiToNativePriceQuantity

  • uiToNativePriceQuantity(price: number, quantity: number): [BN, BN]

Generated using TypeDoc