steam-prices-module
v2.1.4
Published
Get steam items prices
Downloads
13
Readme
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
})();