Skip to content

T extends NumberType

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1125

Extends

Type Parameters

T

T extends NumberType

Implements

Constructors

Constructor

new AssetInfoDoc<T>(data): AssetInfoDoc<T>

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1146

Parameters

data

iAssetInfoDoc<T>

Returns

AssetInfoDoc<T>

Overrides

CustomTypeClass.constructor

Properties

_docId

_docId: string

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1126

A unique stringified document ID

Implementation of

iAssetInfoDoc._docId


_id?

optional _id?: string

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1127

A unique document ID (Mongo DB ObjectID)

Implementation of

iAssetInfoDoc._id


asset

asset: string

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1128

Implementation of

iAssetInfoDoc.asset


calculationType?

optional calculationType?: string

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1144

Calculation type for the asset

Implementation of

iAssetInfoDoc.calculationType


lastUpdated

lastUpdated: T

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1131

Implementation of

iAssetInfoDoc.lastUpdated


percentageChange24h

percentageChange24h: number

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1134

Implementation of

iAssetInfoDoc.percentageChange24h


percentageChange7d

percentageChange7d: number

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1135

Implementation of

iAssetInfoDoc.percentageChange7d


price

price: number

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1130

Implementation of

iAssetInfoDoc.price


recentPriceTrend?

optional recentPriceTrend?: object

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1137

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

pricePoints

pricePoints: object[]

Implementation of

iAssetInfoDoc.recentPriceTrend


symbol

symbol: string

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1129

Implementation of

iAssetInfoDoc.symbol


totalLiquidity

totalLiquidity: iCosmosCoin<T>[]

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1132

Implementation of

iAssetInfoDoc.totalLiquidity


verified?

optional verified?: boolean

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1143

Whether this asset is verified

Implementation of

iAssetInfoDoc.verified


volume24h

volume24h: number

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1136

Implementation of

iAssetInfoDoc.volume24h


volume7d

volume7d: number

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1133

Implementation of

iAssetInfoDoc.volume7d

Methods

clone()

clone(): AssetInfoDoc

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:105

Deep copies the object and returns a new instance.

Returns

AssetInfoDoc

Inherited from

CustomTypeClass.clone


convert()

convert<U>(convertFunction, options?): AssetInfoDoc<U>

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1168

Type Parameters

U

U extends NumberType

Parameters

convertFunction

(item) => U

options?

ConvertOptions

Returns

AssetInfoDoc<U>

Deprecated

This function is unnecessary as this field has no numeric types. Please use the .clone() method instead.

Overrides

CustomTypeClass.convert


equals()

equals<U>(other, normalizeNumberTypes?): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:101

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

U

U extends CustomType<U>

Parameters

other

CustomType<U> | null | undefined

normalizeNumberTypes?

boolean

Returns

boolean

Inherited from

CustomTypeClass.equals


getNumberFieldNames()

getNumberFieldNames(): string[]

Defined in: packages/bitbadgesjs-sdk/src/core/misc.ts:1164

Internal helper method to convert the number fields of the object to a different NumberType equivalent.

Returns

string[]

Overrides

CustomTypeClass.getNumberFieldNames


hasNumberFields()

hasNumberFields(): boolean

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:115

Checks if the object has number fields.

Returns

boolean

Inherited from

CustomTypeClass.hasNumberFields


toJson()

toJson(): JsonObject

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:93

Converts the object to a JSON object with all primitive types.

Returns

JsonObject

Inherited from

CustomTypeClass.toJson


toJsonString()

toJsonString(): string

Defined in: packages/bitbadgesjs-sdk/src/common/base.ts:97

Converts the object to a JSON string.

Returns

string

Inherited from

CustomTypeClass.toJsonString

Edit this page on GitHub