Function cacheCandles

  • Ensures candles for the given range are present in persist storage. Runs a check-then-warm pipeline with one retry: validates the cache first and, on a miss, downloads the missing data and re-validates.

    Parameters

    • params: ICacheCandlesParams

      Combined cache parameters with optional lifecycle callbacks

    Returns Promise<void>