Liquidity Filtering
Liquidity Filtering is a safety mechanism used across Moralis price-dependent features to avoid returning unreliable or easily manipulated prices. It ensures that prices are only derived from pools with sufficient onchain liquidity, making downstream data (net worth, PnL, analytics) safer and more predictable. Liquidity filtering is applied across:- Token Prices
- Wallet Token Balances (with prices)
- Wallet Net Worth
- Other price-dependent features
Why Liquidity Filtering Exists
Onchain markets often include:- Thin or inactive pools
- Short-lived pools created for manipulation
- Pools where one side has meaningful liquidity but the other side is effectively empty
- Produce unstable or misleading prices
- Inflate portfolio values
- Distort rankings and analytics
Default Liquidity Thresholds
Moralis enforces minimum liquidity requirements per chain. Default thresholds:- EVM chains: $50 minimum liquidity per side (each token in the pair)
- Solana: no enforced liquidity threshold
What “pair-side liquidity” means
“Pair-side liquidity” means the USD liquidity of each token in the pool, evaluated independently. For a TOKEN / USDC pool, Moralis checks:- TOKEN-side liquidity (in USD)
- USDC-side liquidity (in USD)
Why this approach
This prevents pools where one side is effectively illiquid, even if the other side looks healthy. Example:- TOKEN liquidity: $100,000
- USDC liquidity: $10
- Long-tail tokens
- Manipulation-resistant pricing
- Stable portfolio and net worth calculations
Low Liquidity Behavior
When a pool fails liquidity filtering, behavior depends on the endpoint.- Get Token Price
Returns a404error indicating insufficient liquidity - Get Multiple Token Prices
The token is omitted from the response - Wallet Token Balances (with prices)
Token price is returned asnull - Wallet Net Worth
Token is excluded from the net worth calculation
Consistency Across Features
Liquidity filtering is applied uniformly so that:- A pool excluded from Token Prices
will not silently be used to value assets in Wallet Net Worth - A token with
nullprice in balances
will not inflate portfolio values unexpectedly
Custom Liquidity Thresholds
You can override the default threshold using themin_pair_side_liquidity_usd query parameter.
Example:min_pair_side_liquidity_usd=5000
This ensures that only pools where both sides have at least $5,000 USD liquidity are considered.
Common Use Cases for Custom Thresholds
- Risk-averse or institutional reporting
- Cleaner portfolio and net worth calculations
- Excluding long-tail or thinly traded tokens
- Reducing exposure to short-lived or manipulated pools
What Liquidity Filtering Does Not Do
Liquidity filtering:- Does not guarantee market fairness
- Does not detect scams by itself
- Does not replace deeper risk analysis

