Jump to content


Photo

Inventory request limit


  • Please log in to reply
2 replies to this topic

#1 PEPZ

PEPZ

    Newbie

  • Member
  • Pip
  • 8 posts

Posted 03 March 2016 - 10:07 AM

I'm occasionally having issues when trying to query user json formatted inventories. I'm getting 429 errors which means too many requests but what's the actual limit?

What I've done to make less requests is cache the bot inventory for 3-4 minutes and cache the users inventory for 1 minute. Even then I'm greeted with 429 sometimes.

 

I did this in PHP but as far as I know the tradeoffer-manager uses the same endpoint for inventory requests.



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,879 posts

Posted 03 March 2016 - 10:28 AM

Moved to general.

 

I'm not sure what the limit is, to be honest. I believe that if you keep it to around 0.5 req/sec you should be good.



#3 komarevtsevdn

komarevtsevdn

    Member

  • Member
  • PipPip
  • 10 posts

Posted 21 March 2016 - 08:29 AM

u must be use proxy and create queue within redis for example.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users