Rank cross-DEX spread opportunities on a chain
get_spreadsDiscover and rank arbitrage spreads across a chain by gross USD at optimal trade size, with buy/sell venues and liquidity filtering. Use live on-chain sweep or free hourly snapshot.
Instructions
Sweep a whole chain and rank its cross-venue price dislocations, each with the buy venue, sell venue, spread in basis points, the optimal trade size, and the gross USD that size would capture. Ranking is by GROSS USD AT THE OPTIMAL SIZE, not by headline basis points — a 160bps spread against a $1,470 pool is worth about a cent, and the payload says so per row (capturable, warning, shallowestSideTvlUsd). Venues below the liquidity floor are excluded because a spread against a dust pool is an artefact, not an opportunity. Numbers are GROSS: before gas, MEV and any slippage beyond the optimal size. Not a profit estimate and not trade advice. With a RapidAPI key and live=true this runs a fresh on-chain sweep (slow, ~30s, most current). Otherwise it serves the free hourly public snapshot, which is keyless and fast — the response always states which, and when it was generated. Paid route: needs your own RapidAPI key in RAPIDAPI_KEY (free tier available at https://rapidapi.com/donnydev/api/multi-chain-dex-prices-liquidity).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | No | true = run a fresh on-chain sweep now (requires RAPIDAPI_KEY, takes ~30s). false/omitted = the free public snapshot, rebuilt hourly. | |
| chain | Yes | Chain key. One of: bsc, polygon, arbitrum, base, avalanche, optimism. Numeric chain IDs are not accepted here — use the key. | |
| limit | No | Live sweeps only. Maximum rows, 1..40. Default 15. | |
| minSpreadBps | No | Live sweeps only. Minimum spread in basis points to report. Default 10. |