Closed RakouskyS closed 9 years ago
As far as I know, Steam market is entirely web-based, so such functionality is outside the scope of this library.
What else could I use to find a solution if you know of any? :(
Make or find a library that communicates with the Steam Market.
Beware that you either
It's actually possible to get (some) market prices through messages.
I have this piece of code here, hopefully you can find it useful
this._handlers[1081] = function clientMarketDataResponseHandler(message) {
var response = base_gcmessages.CMsgGCClientMarketData.parse(message);
self._client.emit('marketData', response);
};
TeamFortress2.prototype.MarketDataRequest = function (currency) {
var payload = base_gcmessages.CMsgGCClientMarketDataRequest.serialize({
user_currency: currency
})
this._client.toGC(440, (1080 | protoMask), payload);
};
Obviously this is for TF2. You'd have to figure out the message for other games. Hope you know what you're doing because that's as far as I will go on explaining this. The data is pretty much useless because it doesn't work with classid, it returns a defindex and a quality, and nothing else. So if it's an unusual hat, you won't have the extra details like particles, etc.
The only solution is to parse the market data via http.
Good luck.
Is it possible to get the current (or even better: average market price) of an item with the classid?
Currently stuck with this problem and I cant find a solution to this.
Thanks for all answers.