Class: NumistaProvider

NumistaProvider()

Numista API Provider Implements Numista-specific API calls

Constructor

new NumistaProvider()

Source:

Methods

(async) getMarketValue(catalogId) → {Promise.<number>}

Get current market value from Numista

Parameters:
Name Type Description
catalogId string

Numista item ID

Source:
Returns:

Current market value in USD

Type
Promise.<number>

(async) lookupItem(catalogId) → {Promise.<Object>}

Lookup item by Numista catalog ID

Parameters:
Name Type Description
catalogId string

Numista item ID

Source:
Returns:

Standardized item data

Type
Promise.<Object>

normalizeItemData(numistaData) → {Object}

Normalize Numista data to standard format

Parameters:
Name Type Description
numistaData Object

Raw Numista API response

Source:
Returns:

Standardized item data

Type
Object

normalizeMetal(composition) → {string}

Normalize metal composition from Numista format

Parameters:
Name Type Description
composition string

Numista composition string

Source:
Returns:

Standardized metal name

Type
string

normalizeType(type) → {string}

Normalize item type from Numista format

Parameters:
Name Type Description
type string

Numista type string

Source:
Returns:

Standardized type

Type
string

(async) searchItems(query, filters) → {Promise.<Array>}

Search for items on Numista

Parameters:
Name Type Description
query string

Search term

filters Object

Search filters

Source:
Returns:

Array of standardized item data

Type
Promise.<Array>