Jump to content
McKay Development

How to get tradable time of Dota2 items


Recommended Posts

Hello everyone!
I'm getting inventory through https://steamcommunity.com/inventory/{steamID}/{appID}/{contextID}
and i receive data below

{ assets:
     { appid: 570,
       contextid: '2',
       assetid: '18658815551',
       classid: '825180652',
       instanceid: '3861633480',
       amount: '1' } ],
     { appid: 570,
       classid: '825180652',
       instanceid: '3861633480',
       currency: 0,
       background_color: '',
       descriptions: [Array],
       tradable: 0,
       name: 'Loading Screen of the Sacrosanct',
       name_color: 'D2D2D2',
       type: 'Uncommon Loading Screen',
       market_name: 'Loading Screen of the Sacrosanct',
       market_hash_name: 'Loading Screen of the Sacrosanct',
       commodity: 0,
       market_tradable_restriction: 7,
       market_marketable_restriction: 0,
       marketable: 1,
       tags: [Array] } ],
  total_inventory_count: 1,
  success: 1,
  rwgrsn: -2 }

you can see "tradable" field is 0 (it mean can't trade at the moment). How to get a timeline to calculate count down time for tradable item.

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.

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.

  • Create New...