xLeeJYx Posted July 17, 2017 Report Posted July 17, 2017 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) } }) } }) Quote
Nacho Posted July 31, 2017 Report Posted July 31, 2017 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. Quote
xLeeJYx Posted August 2, 2017 Author Report Posted August 2, 2017 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 Quote
Recommended Posts
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.