@1delta/margin-fetcher-sol 0.0.3 → 0.0.4

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
@@ -36990,6 +36990,8 @@ async function fetchJupiterPrices(mints, tokenList = {}, opts = {}) {
36990
36990
  for (const [mint, r] of Object.entries(res ?? {})) {
36991
36991
  const p = num(r?.usdPrice);
36992
36992
  if (!(p > 0)) continue;
36993
+ if (opts.minLiquidityUsd !== void 0 && !(num(r?.liquidity) >= opts.minLiquidityUsd))
36994
+ continue;
36993
36995
  byMint[mint] = p;
36994
36996
  const stock = num(r?.stockData?.price);
36995
36997
  if (stock > 0) stockPriceByMint[mint] = stock;