JSPM

community-price-history

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q32265F
  • License MIT

Get an item's price history on Steam Community Market

Package Exports

  • community-price-history
  • community-price-history/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (community-price-history) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

community-price-history

This project is a fork of scm-price-history by HilliamT. As the original project is no longer maintained, I decided to fork it and add some changes.

Usage

getPriceHistory("AK-47 | Redline (Field-Tested)", "730").then(data => {
  console.log(data);
});

// [
//   ...
//   { time: 1395190800000, value: 29.834, volume: 222 },
//   { time: 1395277200000, value: 29.674, volume: 194 },
//   { time: 1395363600000, value: 31.046, volume: 189 },
//   { time: 1395450000000, value: 30.299, volume: 263 },
//   { time: 1395536400000, value: 28.896, volume: 269 },
//   { time: 1395622800000, value: 29.315, volume: 251 },
//   { time: 1395709200000, value: 30.521, volume: 222 },
//   { time: 1395795600000, value: 29.847, volume: 234 }
//   ...
// ]