Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
steam-market-pricing
Advanced tools
Install using:
npm install steam-market-pricing
Note Latest release requires async/await
(node >= 7.6) support to run to run, install 1.0.3 if your environment does not support it
Input:
const market = require('steam-market-pricing');
market.getItemPrice(730, 'MP9 | Storm (Minimal Wear)').then(item => console.log(item));
Output:
{
"success": true,
"lowest_price": "$0.05",
"volume": "108",
"median_price": "$0.03",
"market_hash_name": "MP9 | Storm (Minimal Wear)"
}
Input:
const market = require('steam-market-pricing');
const names = [
'MP9 | Storm (Minimal Wear)',
'Sawed-Off | Origami (Well-Worn)'
];
market.getItemsPrices(730, names).then(items => names.forEach(name => console.log(`${name}: ${items[name].median_price}`)));
Output:
MP9 | Storm (Minimal Wear) median price: $0.03
Sawed-Off | Origami (Well-Worn) median price: $0.09
Input:
const market = require('steam-market-pricing');
market.getItemsPrices(730, 'Sawed-Off | Origami (Well-Worn)').then(items => console.log(items));
Output:
{
"Sawed-Off | Origami (Well-Worn)": {
"success": true,
"lowest_price": "$0.12",
"volume": "18",
"median_price": "$0.09"
}
}
Use with await
for the best experience, check test.js
for examples
appid
- Steam application idname
- Item name, market hashedcurrency
- Optional. Currency codeRequests steam item market details. Returns promise.
appid
- Steam application idnames
- Array with item names, market hashedcurrency
- Optional. Currency codecurrency
- Optional. Number of concurrent requestsRequests multiple steam items market details. Returns promise.
Note: getItemsPrices
will not throw, instead, it will attach the error into response object: { "success": false, "err": HTTPError }
check GOT errors for error descriptions
Currency codes can be found here
The MIT License (MIT)
Copyright (c) 2015-2018 Arkadiusz Sygulski <arkadiusz@sygulski.pl>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
FAQs
Simple module that checks steam market prices
The npm package steam-market-pricing receives a total of 31 weekly downloads. As such, steam-market-pricing popularity was classified as not popular.
We found that steam-market-pricing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.