@adaptic/utils 0.0.919 → 0.0.920

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.mjs CHANGED
@@ -7785,7 +7785,7 @@ const fetchPrices = async (params, options) => {
7785
7785
  const baseUrl = `https://api.massive.com/v2/aggs/ticker/${encodeURIComponent(ticker)}/range/${multiplier}/${timespan}/${start}/${end}`;
7786
7786
  const urlParams = new URLSearchParams({
7787
7787
  apiKey,
7788
- adjusted: "true",
7788
+ ...(params.adjusted !== false && { adjusted: "true" }),
7789
7789
  sort: "asc",
7790
7790
  limit: limit.toString(),
7791
7791
  });
@@ -7806,7 +7806,7 @@ const fetchPrices = async (params, options) => {
7806
7806
  const lastWarn = delayedWarnTimestamps.get(params.ticker) ?? 0;
7807
7807
  if (now - lastWarn > DELAYED_WARN_COOLDOWN_MS) {
7808
7808
  delayedWarnTimestamps.set(params.ticker, now);
7809
- getLogger().warn(`Massive.com returned DELAYED data for ${params.ticker} — using delayed results`, { ticker: params.ticker, source: "MassiveAPI.fetchPrices" });
7809
+ getLogger().info(`Massive.com returned DELAYED data for ${params.ticker} — using delayed results`, { ticker: params.ticker, source: "MassiveAPI.fetchPrices" });
7810
7810
  }
7811
7811
  }
7812
7812
  if (data.results) {