Ryan Posted August 8, 2016 Report Posted August 8, 2016 Hello I have a couple of questions regarding the tradeOffers event and changes in trade offer states.Is the tradeOffers event only emitted when receiving a new trade offer? Is there an event that is emitted when a trade offer changes state? Is the only way to detect changes in trade offer states to poll Steam API GetTradeOffers? What are the rate limits of Steam API GetTradeOffers, is it based on IP Address or Steam Account, or?Thank you for any support, really loving your libraries. Quote
Dr. McKay Posted August 9, 2016 Report Posted August 9, 2016 tradeOffers is emitted whenever the number of active received trade offers you have changes. This means that it will be emitted when you receive a new offer, or when an offer you previously received is accepted/canceled/declined. If you need more info about trade offers or you need to act on them, look at steam-tradeoffer-manager. Quote
Ryan Posted August 9, 2016 Author Report Posted August 9, 2016 This means that it will be emitted when you receive a new offer, or when an offer you previously received is accepted/canceled/declined. Okay, and for trade offers I have created this event won't be emitted at all and that's where I must poll Steam API GetTradeOffers to get trade offer state changes instead? Quote
Dr. McKay Posted August 9, 2016 Report Posted August 9, 2016 Correct. steam-tradeoffer-manager will handle all that polling for you. Ryan 1 Quote
Ryan Posted August 9, 2016 Author Report Posted August 9, 2016 Thank you for the help Dr. McKay. Quote
Recommended Posts
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.