@adaptic/utils 0.0.918 → 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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/massive.d.ts +1 -0
- package/dist/types/massive.d.ts.map +1 -1
- package/package.json +2 -2
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().
|
|
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) {
|