The Price Cacher service encompasses two major components:
The cron job is responsible for systematically collecting and storing price data from designated sources to a database. It operates on a fixed schedule, running every 5 minutes.
Presently, the assets list (for which we query prices) is principally determined by the assets supported by Aldus. The price data is sourced from the CoinGecko API. The integration of this caching technique significantly mitigates the necessity for direct API calls to fetch price data, thereby reducing associated data consultation costs.
The Price Cacher API offers a conduit for accessing the cached price data by third-party clients and services. This system holds the following benefits: