You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to check StatTrak CSGO items with my command but that isnt working, however all other items work just fine, maybe it has something to do with the TM behind the StatTrak.
Anyone got it working for these kind of items?
~ DevItsMB :).
The text was updated successfully, but these errors were encountered:
Bit late, but...
Yeah, seems like ™ is wrongly encoded into the path (when using query of got), which results in wrongly formatted url, so steam doesn't know what you are asking for.
I was actually curious why it doesn't work, tested a bit and wrote method that properly returns the values for StatTrak items.
/** * Retrieve price for single item. * * @param {number} appid - Steam application id * @param {String} name - Item name, market hashed * @param {number} [currency=1] - Currency code number, default USD (https://github.com/SteamRE/SteamKit/blob/master/Resources/SteamLanguage/enums.steamd#L696) */asyncfunctiongetItemPrice(appid,name,currency=1){constresponse=awaitgot(encodeURI(`http://steamcommunity.com/market/priceoverview?appid=${appid}¤cy=${currency}&market_hash_name=${name}`),{json: true,});return{ ...response.body,market_hash_name: name};}
I tried to check StatTrak CSGO items with my command but that isnt working, however all other items work just fine, maybe it has something to do with the TM behind the StatTrak.
Anyone got it working for these kind of items?
~ DevItsMB :).
The text was updated successfully, but these errors were encountered: