Jump to content

Bug: Trade Price API Uber Slow


Phrogg
 Share

Recommended Posts

I'm running an ajax request against https://politicsandwar.com/api/tradeprice/resource=iron (for example) and its taking between 6-10 seconds to return about 300B of data. This has been consistent over the last week or so. I don't remember this being the case 6-8 month ago when I last had a need to interact with the API.

ironajax.png.36dbadb98e175e35106acdaf4f39b9c7.png

The other API endpoints (including /api/nations) are working fine.

sith_sig.png

 

was important; now retired 

Link to comment
Share on other sites

  • Administrators

That's because I have a delay on that script so that people can't use it to pull real time data and snag those super good trade offers (which are usually mistakes) immediately with scripts or bots. It's been this way for at least a few months if not 6 months or longer.

  • Upvote 1

Is there a bug? Report It | Not understanding game mechanics? Ask About It | Got a good idea? Suggest It

Forums Rules | Game Link

Link to comment
Share on other sites

2 hours ago, Alex said:

That's because I have a delay on that script so that people can't use it to pull real time data and snag those super good trade offers (which are usually mistakes) immediately with scripts or bots. It's been this way for at least a few months if not 6 months or longer.

If that's the intention, could you remove the Captchas for deleting offers? Those take more than 6 to 10 seconds to complete. 

NODOLsmall.png.a7aa9c0a05fa266425cd7e83d8ccb3dd.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and the Guidelines of the game and community.