OfficialCSGOEmpire / API-Docs

Official documentation for API Key usage
26 stars 7 forks source link

Trade withdraw asset_id #5

Closed ckypper closed 2 years ago

ckypper commented 2 years ago

Hi guys, I want to get asset_id when i withdraw an item Can u guys add it in websocket event trade_status withdrawal

Art-em1s commented 2 years ago

You can just request your steam inventory and get it that way.

Asset ids aren't a defining factor for trades via empire, they also change upon being traded, so we'd have to get the withdrawing users inventory in order to do so, which is a relatively unnecessary process.

ckypper commented 2 years ago

but if i'm the depositer i got asset_id from trade_status deposit event when someone withdraw my item. so why u guy can send asset_id to depositer but not withdrawer

Art-em1s commented 2 years ago

In order to know what items you have in your inventory we have to load your inventory. Inventories are only updated once per hour, to reduce the spam requests against steams api.

As I said, you can just get your own inventory after the trade completes and look for the newest asset id

ckypper commented 2 years ago

I only want to say that why u guys can send asset_id to the depositer when a trade happened but not the withdrawer. Cause if i look up my own inventory, there're some case that is not correct, like multiple new item with the same name in steam inventory at the same time.

Art-em1s commented 2 years ago

As I said, the best way for you to achieve this would be to get the newest asset id from your inventory.

Locked for spam.