Skip to content
Kristjan Kirpu edited this page Feb 24, 2016 · 13 revisions

Examples

There are some examples available in the examples directory.

Steam Market Manager

SteamMarketManager is the root object that node-steam-market-manager exports. You'll need to instantiate it.

Example

var SteamMarketManager = require('steam-market-manager');
var market = new SteamMarketManager({
    "appID": 730
});

Constructor([options])

  • options - Optional. An object containing any or all of the following options:
    • appID - Optional. Will define the default application id when fetching market prices.
    • currency - Optional. Specifies in which currency the values should be. (1 - USD, 3 - EUR (default))
    • keepCurrencySymbols - Optional. Steam by default returns currency symbols too (ex. 12,99€). This defaults to false and will remove the symbols.

Methods

getItem(options[, callback])

  • name - Required. The market_hash_name for the item. (Ex. "StatTrak™ CZ75-Auto | The Fuschia Is Now (Well-Worn)" without quotes)
  • currency - Optional. Will default to Constructor's value if not set.
  • appID - Optional. Will default to Constructor's value if not set. Required if you did not set the value in Constructor.
  • includeFloat - Optional. Will default to Constructor's value if not set.
  • callback - Required.
    • err - null on success.
    • item - Steam JSON response.
Clone this wiki locally