Jump to content
McKay Development

Recommended Posts

Posted (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 by JAHMCR
  • JAHMCR changed the title to Trade offer polling not always working
Posted (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 by Dr. McKay
Posted
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!

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