TP to API update timing

TP to API update timing

in API Development

Posted by: Neural.1824

Neural.1824

How often is the API data updated with information from the Trading post (such as price or quantity)?
Iā€™d like to use a refresh on a page, but would rather not set the timer for anything less than necessary.

Where are my gem sales? I want gem sales! Nerf EVERYTHING!

TP to API update timing

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

The current configuration for cache times are:

  • /v2/commerce/listings ā€“ 1 minute
  • /v2/commerce/transactions ā€“ 1 minute
  • Everything else ā€“ 5 minutes

Kinda confused by this; I thought listings was at 5 minutes and prices was at 1 minute. Might switch that around.

The cache times are returned in the Cache-Control and Expires headers in the HTTP response.