Altcoin perpetual liquidation intelligence for Binance, Bybit, and OKX.
AltLiqIQ is an MCP server that maps liquidation clusters, classifies squeeze risk, and estimates cascade size for altcoin perpetual markets. It excludes BTC and ETH by design and focuses on altcoins where liquidation positioning can change quickly and free raw exchange endpoints are harder to interpret.
- Aggregates perp market data across Binance, Bybit, and OKX
- Detects liquidation clusters from merged order books and recent liquidation activity
- Scores squeeze risk as
LOW,MODERATE,HIGH, orEXTREME - Labels likely setup direction such as
LONG_SQUEEZEorSHORT_SQUEEZE - Estimates liquidation cascade size at a target price
- Compares up to 8 supported assets in one ranked call
SOL, DOGE, LINK, AVAX, SUI, ARB, WIF, PEPE, INJ, TIA, JTO, PYTH, STRK, MANTA, ALT, NEAR, FTM, MATIC, OP, ATOM
BTC and ETH are intentionally excluded.
AltLiqIQ uses public exchange APIs only. No exchange API keys are required.
- Mark price
- Open interest
- Order book depth
Forced liquidation history(Binance discontinued public access toallForceOrders— this data source is currently unavailable and is not part of the live liquidation signal. Binance still contributes mark price, OI, order book, funding, and long/short ratio.)- Top trader long/short ratio
- Funding rate
- Mark price
- Open interest
- Order book
- Funding rate
- Account long/short ratio
- Recent trades used as a liquidation proxy for large prints
- Mark price
- Open interest
- Order book
- Public liquidation orders
- Funding rate
- Contract long/short account ratio
The server fetches venue data concurrently, then normalizes it into a single analysis layer:
- Mark price is merged using the median of available venues
- Open interest is summed across venues
- Long/short positioning is averaged across available readings
- Funding is averaged across venues
- Order books are merged into one cluster-detection surface
- Liquidations are pooled across venues, with OKX liquidation prints weighted more heavily because they come from a direct public liquidation endpoint
The cluster engine combines:
- Order book wall density
- Recent liquidation distribution
- Synthetic OI-aware cluster estimates
Returns a real-time liquidation cluster map for one altcoin.
Inputs:
asset: altcoin ticker such asSOLorLINKvenues: optional array of venues frombinance,bybit,okx
Key outputs:
mark_priceopen_interest_usdfunding_ratelong_short_ratiotop_clustersdominant_siderisk_classificationsqueeze_typenearby_cluster_usdfunding_biasconfidence_scorevenues_usedvenue_breakdownanalysis_timestamp
Rate-limit metadata:
60requests per minute1000mscooldown8max concurrency- Use
compare_altcoin_liq_riskinstead of repeating this tool across many assets
Compares liquidation risk across multiple altcoin perp markets and ranks them by severity.
Inputs:
assets: array of up to 8 altcoin tickers
Key outputs:
assets_comparedresultshighest_risk_assetanalysis_timestamp
Rate-limit metadata:
20requests per minute3000mscooldown2max concurrency- Heavy fan-out tool across 3 venues and up to 8 assets
Estimates how much USD liquidation could be triggered if price reaches a target.
Inputs:
asset: altcoin tickertarget_price: target price in USD
Key outputs:
mark_pricetarget_pricedirectionpct_move_requiredclusters_in_pathcascade_size_usdseverityconfidence_scoreanalysis_timestamp
Rate-limit metadata:
60requests per minute1000mscooldown8max concurrency- Reuses cached cluster data for 30 seconds when possible
GET /service info, supported assets, pricing, and tool listGET /healthhealth checkGET /sseMCP SSE transportPOST /messagesMCP JSON-RPC message endpoint
pip install -r requirements.txt
cp .env.example .env
# edit .env and set CTX_SECRET
python main.pyThe server runs on http://localhost:8000.
Procfile:
web: uvicorn main:app --host 0.0.0.0 --port $PORT- "Where are the biggest liquidation clusters on SOL perps right now?"
- "Is DOGE at risk of a long squeeze based on current liquidation positioning?"
- "Compare liquidation risk on SOL, AVAX, LINK, and ARB right now"
- "Estimate the cascade on LINK if price drops 5% from here"
- "Show PEPE liquidation clusters using only Bybit and OKX"
- "Which supported altcoin has the highest squeeze risk right now?"
- Cache TTL is
30seconds - The server is query-only and does not place trades
- Multi-asset comparison should go through
compare_altcoin_liq_riskinstead of repeated single-asset calls - Bybit liquidation detection is proxy-based from recent large trades, so confidence can differ from venues with direct liquidation feeds
Free exchange endpoints provide raw pieces of the picture, but not the normalized answer traders usually want:
- Where are the biggest liquidation pockets?
- Which side is most vulnerable?
- Is this setup likely to squeeze up or down?
- How large could a cascade be if price moves into those clusters?
AltLiqIQ turns fragmented multi-venue perp data into one consistent response surface that an agent or trader can act on quickly.