Type alias UserAccount

UserAccount: {
    authority: PublicKey;
    cumulativePerpFunding: BN;
    cumulativeSpotFees: BN;
    delegate: PublicKey;
    hasOpenAuction: boolean;
    hasOpenOrder: boolean;
    idle: boolean;
    isMarginTradingEnabled: boolean;
    lastActiveSlot: BN;
    lastAddPerpLpSharesTs: BN;
    lastFuelBonusUpdateTs: number;
    liquidationMarginFreed: BN;
    maxMarginRatio: number;
    name: number[];
    nextLiquidationId: number;
    nextOrderId: number;
    openAuctions: number;
    openOrders: number;
    orders: Order[];
    perpPositions: PerpPosition[];
    settledPerpPnl: BN;
    spotPositions: SpotPosition[];
    status: number;
    subAccountId: number;
    totalDeposits: BN;
    totalSocialLoss: BN;
    totalWithdraws: BN;
}

Type declaration

  • authority: PublicKey
  • cumulativePerpFunding: BN
  • cumulativeSpotFees: BN
  • delegate: PublicKey
  • hasOpenAuction: boolean
  • hasOpenOrder: boolean
  • idle: boolean
  • isMarginTradingEnabled: boolean
  • lastActiveSlot: BN
  • lastAddPerpLpSharesTs: BN
  • lastFuelBonusUpdateTs: number
  • liquidationMarginFreed: BN
  • maxMarginRatio: number
  • name: number[]
  • nextLiquidationId: number
  • nextOrderId: number
  • openAuctions: number
  • openOrders: number
  • orders: Order[]
  • perpPositions: PerpPosition[]
  • settledPerpPnl: BN
  • spotPositions: SpotPosition[]
  • status: number
  • subAccountId: number
  • totalDeposits: BN
  • totalSocialLoss: BN
  • totalWithdraws: BN

Generated using TypeDoc