Jump to content
McKay Development

how to get latest price with getMarketItem


xLeeJYx

Recommended Posts

So using this method, it seems to return prices that aren't the latest. Can i know how to get the latest price ?

offer.itemsToGive.forEach((item) => {
    if (isCard(item) === true) {
        community.getMarketItem(item.appid, item.market_hash_name, function(err, item) {
            if (err) {
                console.log(err)
            } else {
                console.log(item)
            }
        })
    }
})
Link to comment
Share on other sites

  • 2 weeks later...
request('http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name='+YOUR_MARKET_HASH_NAME, function (e, r, body){
  var req_data = JSON.parse(body);
  lowPrice = req_data['lowest_price'];
});

Use this to get the lowest price.

Link to comment
Share on other sites

can y

 

request('http://steamcommunity.com/market/priceoverview/?currency=1&appid=730&market_hash_name='+YOUR_MARKET_HASH_NAME, function (e, r, body){
  var req_data = JSON.parse(body);
  lowPrice = req_data['lowest_price'];
});

Use this to get the lowest price.

 

can you help me with this thing ? i dont understand async. I want it to check the price of the trading card if the partner is offer one. and if its below a certain value, it will decline the trade or else do pricechecking in ref

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...