@adaptic/utils 0.0.919 → 0.0.921

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -7787,7 +7787,7 @@ const fetchPrices = async (params, options) => {
7787
7787
  const baseUrl = `https://api.massive.com/v2/aggs/ticker/${encodeURIComponent(ticker)}/range/${multiplier}/${timespan}/${start}/${end}`;
7788
7788
  const urlParams = new URLSearchParams({
7789
7789
  apiKey,
7790
- adjusted: "true",
7790
+ ...(params.adjusted !== false && { adjusted: "true" }),
7791
7791
  sort: "asc",
7792
7792
  limit: limit.toString(),
7793
7793
  });
@@ -7808,7 +7808,7 @@ const fetchPrices = async (params, options) => {
7808
7808
  const lastWarn = delayedWarnTimestamps.get(params.ticker) ?? 0;
7809
7809
  if (now - lastWarn > DELAYED_WARN_COOLDOWN_MS) {
7810
7810
  delayedWarnTimestamps.set(params.ticker, now);
7811
- getLogger().warn(`Massive.com returned DELAYED data for ${params.ticker} — using delayed results`, { ticker: params.ticker, source: "MassiveAPI.fetchPrices" });
7811
+ getLogger().info(`Massive.com returned DELAYED data for ${params.ticker} — using delayed results`, { ticker: params.ticker, source: "MassiveAPI.fetchPrices" });
7812
7812
  }
7813
7813
  }
7814
7814
  if (data.results) {