JAHMCR Posted May 1, 2024 Report Posted May 1, 2024 (edited) Hey! I'm having issues polling the trade offers, it usually works when I start the bot but not when I send a trade offer while the bot is running. This is my tradeOfferManager config: this.tradeOfferManager = new TradeOfferManager({ steam: this.client, community: this.community, language: "en", pollInterval: 1000, pollFullUpdateInterval: 2000, cancelTime: 600000 }); Any ideas or suggestions? Update: Added a "pollFailure" listener and I am now seeing this error: Error: HTTP error 429 What's the recommended poll interval for trade offers to prevent exceeding this limit? Thanks! Edited May 1, 2024 by JAHMCR Quote
Dr. McKay Posted May 1, 2024 Report Posted May 1, 2024 (edited) If you're passing an instance of SteamUser in to the constructor, I recommend you don't poll more frequently than every 30 seconds (30000). And you shouldn't be running full updates more frequently than every 2 minutes (120000). In other words, the defaults are fine. Edited May 1, 2024 by Dr. McKay Quote
JAHMCR Posted May 1, 2024 Author Report Posted May 1, 2024 3 hours ago, Dr. McKay said: If you're passing an instance of SteamUser in to the constructor, I recommend you don't poll more frequently than every 30 seconds (30000). And you shouldn't be running full updates more frequently than every 2 minutes (120000). In other words, the defaults are fine. Got it, yeah I'm using the SteamUser instance in the constructor, so I'll leave it as default. Thank you very much! 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.