2.1.4 • Published 5 years ago

steam-prices-module v2.1.4

Weekly downloads
283
License
ISC
Repository
gitlab
Last release
5 years ago

args

Calculates prices (skin + stickers) for CS:GO skins

Installation

npm i steam-prices-module

Create you database with steam prices

items_prices - prices from steamapis (https://steamapis.com/docs/market#items) conversion_rules - fields: {appid: 730, weapon: "AK-47") conversion_rules_rarities - fields: {rule_id: parrent ID, rare: "mil-spec grade", extra: 2) conversion_rules_rarities - fields: {rule_id: parrent ID, position: 0, extra: 5.5)

(extra - percentage of the sticker price)

Usage

const SteamPricer = require('steam-prices-module');

(async ()=>{ // for example
  const steamPricer = new SteamPricer();
  const prices = await steamPricer.get([
    {
      name: 'AK-47 | Uncharted (Field-Tested)',
      assetid: '123123',
      weapon: 'AK-47',
      rare: 'mil-spec grade',
      stickers: [
        {
          name: 'Sticker | Renegades | Berlin 2019',
          wear: null,
          position: 0,
        },
        {
          name: 'Sticker | Avangar | Berlin 2019',
          wear: 0.1231321,
          position: 2,
        },
        {
          name: 'Sticker | Natus Vincere | Katowice 2019',
          wear: null,
          position: 2,
        },
        {
          name: 'Sticker | n0rb3r7 | Katowice 2019',
          wear: 0.8231321,
          position: 3,
        },
      ],
    },
  ]);
  console.log(prices); // you items with prices and stickers prices
  await steamPricer.close(); // close the connection after working
})();
2.1.2

5 years ago

2.1.1

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago