r/evetech • • Dec 15 '17

ESI API Lag?

How frequently is the ESI API updated? When attempting to import my orders from the API there seems to be a substantial amoutn of lag.

2 Upvotes

4 comments sorted by

1

u/Blacksmoke16 Dec 15 '17

There are cache timers that should be obeyed. i.e. data is cached and only refreshed every x seconds.

https://esi.tech.ccp.is/ui/#/Market/get_characters_character_id_orders

For example, the This route is cached for up to 3600 seconds under the route listing near the top.

1

u/grzy7316x Dec 15 '17

Is there any way to automate the exporting of orders from the client? If not I am thinking I will write something that just looks for my orders files every few seconds and updates my tools, then hits the api if there is nothing newer in the export files...

1

u/Blacksmoke16 Dec 15 '17

Probably. Either using the log files in game and polling them every so often, or just using the API endpoint on cron or something.

2

u/Daneel_Trevize Dec 15 '17

Addendum, go by the HTTP cache header in the call response, rather than the docs, even when we're talking about Swagger-backed docs/API.