Jump to content
McKay Development

How to get tradable time of Dota2 items


Recommended Posts

Posted

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' } ],
  descriptions:
   [ 
     { appid: 570,
       classid: '825180652',
       instanceid: '3861633480',
       currency: 0,
       background_color: '',
       icon_url:
        '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KW1Zwwo4NUX4oFJZEHLbXP7g1bJ4Q1lgheXknVSffixc7aXlh6MTtYsIWxIwJfwPLLYzhG0966m5OYmPrLP7TQkmJf7_piifvE8IK7iwXt8kBpNmDzcY-ddlM4Mg3ZqQS_yO_p08Du7ZmdnSQw63Rx4CnZmgv330-knDPovw',
       icon_url_large:
        '-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KW1Zwwo4NUX4oFJZEHLbXP7g1bJ4Q1lgheXknVSffixc7aXlh6MTtYsIWxIwJfwPLLYzhG0966m5OYmPrLP7TQkmJf7_piifvE8ILKhFWmrBZyajugJY6UIwFqYAvQ_Ae7yb_rhZa-vpjNmHsxuih3tyvenRS0iE0YZ_sv26Jnx2ogxA',
       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.

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.

Guest
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.

Loading...
×
×
  • Create New...