{"action":"created","issue":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/128","repository_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager","labels_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/128/comments","events_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/128/events","html_url":"https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/issues/128","id":145411655,"number":128,"title":"[SUGGESTION] Checking if item is in trade","user":{"login":"Infrox","id":16488742,"avatar_url":"https://avatars.githubusercontent.com/u/16488742?v=3","gravatar_id":"","url":"https://api.github.com/users/Infrox","html_url":"https://github.com/Infrox","followers_url":"https://api.github.com/users/Infrox/followers","following_url":"https://api.github.com/users/Infrox/following{/other_user}","gists_url":"https://api.github.com/users/Infrox/gists{/gist_id}","starred_url":"https://api.github.com/users/Infrox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infrox/subscriptions","organizations_url":"https://api.github.com/users/Infrox/orgs","repos_url":"https://api.github.com/users/Infrox/repos","events_url":"https://api.github.com/users/Infrox/events{/privacy}","received_events_url":"https://api.github.com/users/Infrox/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-02T20:01:25Z","updated_at":"2016-04-06T04:57:21Z","closed_at":"2016-04-05T19:06:35Z","body":"I ran into this issue today, couldn't find a good way to do it. You could add following function:\r\n```\r\nisItemInTrade(assetid,callback(err,data))\r\nerr - Error\r\ndata - 1 if in any trade, 0 if not found.\r\n```\r\n\r\nI mean I have the assetID of an item, and I need to check if bot has sent an offer with this item to someone. That would be helpful because you can check an item before sending the actual offer."},"comment":{"url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/comments/206118345","html_url":"https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/issues/128#issuecomment-206118345","issue_url":"https://api.github.com/repos/DoctorMcKay/node-steam-tradeoffer-manager/issues/128","id":206118345,"user":{"login":"andrewda","id":10191084,"avatar_url":"https://avatars.githubusercontent.com/u/10191084?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewda","html_url":"https://github.com/andrewda","followers_url":"https://api.github.com/users/andrewda/followers","following_url":"https://api.github.com/users/andrewda/following{/other_user}","gists_url":"https://api.github.com/users/andrewda/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewda/subscriptions","organizations_url":"https://api.github.com/users/andrewda/orgs","repos_url":"https://api.github.com/users/andrewda/repos","events_url":"https://api.github.com/users/andrewda/events{/privacy}","received_events_url":"https://api.github.com/users/andrewda/received_events","type":"User","site_admin":false},"created_at":"2016-04-06T04:57:20Z","updated_at":"2016-04-06T04:57:20Z","body":"@autaut03 The way @DoctorMcKay did this should be fast enough. All it does is make a single request to `getOffers()` and then check whether they contain the items you specify."}}