bitbadgesjs-sdk - v0.22.7
    Preparing search index...

    Class AssetInfoDoc<T>

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _docId: string

    A unique stringified document ID

    _id?: string

    A unique document ID (Mongo DB ObjectID)

    asset: string
    lastUpdated: T
    percentageChange24h: number
    percentageChange7d: number
    price: number
    recentPriceTrend?: { pricePoints: { price: number; timestamp: T }[] }

    Recent price trend data points for charting (last 7 days)

    totalLiquidity: iCosmosCoin<T>[]
    verified?: boolean

    Whether this asset is verified

    volume24h: number
    volume7d: number

    Methods

    • Compares this object's fields to another object's fields for equality. Equality is determined by comparing the JSON representations of the objects.

      If normalizeNumberTypes is true, then all number types will be compared as strings (i.e. "1n" === "1" === 1). Else, they will be compared as their native types (i.e. 1n !== 1 !== "1").

      Type Parameters

      Parameters

      • other: undefined | null | CustomType<U>
      • OptionalnormalizeNumberTypes: boolean

      Returns boolean