sifting/io
Decentralized finance · DEX & DeFi data API

Real-time DEX swaps and liquidity, across every major chain.

Swap-level activity, pool state, and historical trade data for the largest decentralized exchanges on Ethereum, major Layer 2s, and Solana. Indexed directly from chain, block-deterministic by design, and delivered through the same credential and JSON schema as the rest of the SiftingIO API.

All products
  • Multi-chainEVM + Solana
  • Block-anchoredReplay-safe
  • 99.9%Uptime SLA
  • Same credentialAs CEX & on-chain
Capabilities

Built for on-chain, not retrofitted onto it.

Indexed directly from chain. Block-anchored on every record. Multi-chain by default, with the same JSON shape across protocols wherever the underlying concept exists.

Multi-chain by default

Ethereum, Arbitrum, Optimism, Base, Polygon, BNB Chain, Avalanche, and Solana: one API surface, one schema, one credential across every chain.

Swap-level activity

Every on-chain swap on covered protocols, decoded into a uniform shape: side, amounts in native and USD, price impact, transaction hash, and block.

Pool state & liquidity

AMM pool snapshots (reserves, fee tier, tick liquidity (Uniswap v3-style), TVL, 24h volume) captured at block boundaries for deterministic reads.

AMM-aware quoting

Best-route quotes across covered pools and protocols with price impact and gas estimates. Useful for swap UIs, aggregators, and pre-trade analytics.

Block-deterministic

Every record carries block_number and ts. Reorgs are detected automatically and corrected with versioned diffs, so backtests stay reproducible.

One credential across CEX, DEX, and on-chain

DEX & DeFi is a separate module from CEX cryptocurrency, but the same API key authenticates both. Add a module without rotating credentials.

API · DEX

Pool state, swap streams, and best-route quotes.

REST snapshots and WebSocket streams, both authenticated with the same bearer token as the rest of the SiftingIO API.

GET · DEX pool state
curl https://api.siftingio.com/v1/dex/pool \
  -H "Authorization: Bearer sft_•••" \
  -G --data-urlencode "chain=ethereum" \
       --data-urlencode "protocol=uniswap_v3" \
       --data-urlencode "address=0x88e6...c5"
200 OK · application/json
{
  "chain": "ethereum",
  "protocol": "uniswap_v3",
  "address": "0x88e6...c5",
  "token0": { "symbol": "USDC", "decimals": 6 },
  "token1": { "symbol": "WETH", "decimals": 18 },
  "fee_tier_bps": 5,
  "price": "1742.18",
  "tvl_usd": "423891402.55",
  "liquidity": "1.234e22",
  "volume_24h_usd": "82451000",
  "block_number": 21345678,
  "ts": 1714058400123
}
WebSocket · subscribe swaps
const ws = new WebSocket("wss://stream.siftingio.com/v1/ws");

ws.addEventListener("open", () => {
  ws.send(JSON.stringify({
    op: "subscribe",
    channel: "dex_swaps",
    chains: ["ethereum", "arbitrum", "solana"],
    tokens: ["WETH", "USDC"],
  }));
});
stream · dex_swaps
{ "type": "swap", "chain": "ethereum", "protocol": "uniswap_v3", "pool": "0x88e6...c5", "side": "buy",  "amount_in_usd": "12500", "amount_out_usd": "12483", "price_impact_bps": 1.4, "tx": "0xabc...", "block_number": 21345679, "ts": 1714058401412 }
{ "type": "swap", "chain": "arbitrum", "protocol": "uniswap_v3", "pool": "0x...", "side": "sell", "amount_in_usd": "8200",  "amount_out_usd": "8195",  "price_impact_bps": 0.6, "tx": "0xdef...", "block_number": 215678901, "ts": 1714058401488 }
{ "type": "swap", "chain": "solana", "protocol": "raydium",     "pool": "ABCD...", "side": "buy",  "amount_in_usd": "3400",  "amount_out_usd": "3392",  "price_impact_bps": 2.1, "tx": "5KQp...", "block_number": 287901234, "ts": 1714058401611 }
Coverage

Protocols, chains, and assets covered.

A representative sample of supported protocols, chains, and quote/blue-chip assets is shown below. Coverage extends beyond this list and continues to expand. Need a protocol or chain you don’t see? Request it →

DEX protocols

Major venues
  • Uniswap v2
  • Uniswap v3
  • Uniswap v4
  • Curve
  • Balancer
  • SushiSwap
  • Aerodrome
  • Velodrome
  • PancakeSwap
  • Raydium
  • Jupiter
  • Orca

Chains

EVM + Solana
  • Ethereum
  • Arbitrum
  • Optimism
  • Base
  • Polygon
  • BNB Chain
  • Avalanche
  • Solana

Quote & blue-chip assets

Highest liquidity
  • WETH
  • WBTC
  • USDC
  • USDT
  • DAI
  • stETH
  • wstETH
  • weETH
  • USDe
  • FRAX
Built for

Where DeFi teams ship with SiftingIO.

DeFi dashboards & analytics

Pool TVL, swap volumes, and fee revenue across protocols and chains, dropping into BI pipelines, Jupyter notebooks, or DeFi dashboards without per-chain glue code.

DEX aggregators & trading bots

Best-route quoting, real-time pool state, and swap streams for execution research and bot infrastructure. Same WebSocket surface as the CEX module.

MEV & arbitrage research

Decoded swaps with price-impact, full historical depth, and an opt-in feed for failed transactions, built for arbitrage discovery, sandwich analysis, and order-flow research.

Wallets & swap UIs

Live pool prices, USD-denominated swap quotes, and new-pool detection: the building blocks for swap interfaces, in-wallet trading, and DeFi-native fintech apps.

FAQ

DEX & DeFi API, frequently asked.

What DEX protocols does the API cover?

Coverage includes Uniswap (v2, v3, and v4), Curve, Balancer, and SushiSwap on Ethereum and Layer 2s; Aerodrome and Velodrome on Base and Optimism; PancakeSwap on BNB Chain; QuickSwap on Polygon; and Raydium, Orca, Jupiter, and Meteora on Solana. Additional protocols are added as each integration is verified to our quality bar.

Which blockchains are supported?

Ethereum mainnet, Arbitrum, Optimism, Base, Polygon, BNB Chain, Avalanche, and Solana. Additional chains are added as the data is verified end-to-end. Per-chain coverage and protocol availability are queryable through the API reference.

Where does the DEX data come from?

Data is indexed directly from on-chain logs and state. We run our own indexers and full nodes across supported chains, with no reliance on third-party RPC for primary data. Pool state is captured at block boundaries; swap events are decoded from event logs in real-time.

What's the data freshness, and how soon after a swap will I see it?

WebSocket swap events are emitted within one block of inclusion: sub-second on Solana, and approximately 2–12 seconds on EVM chains depending on block time. REST snapshots are block-anchored, with deterministic ts and block_number fields so reads are reproducible and replayable.

Do you provide best-route quoting or aggregator routing?

Yes. The /v1/dex/quote endpoint returns the best route for a swap across covered pools and protocols, with quoted output, price impact, and a gas estimate. Routing is intended for indication and research; users are responsible for trade execution, slippage protection, and MEV mitigation.

Is historical DEX and pool data included?

Yes. Historical swaps and pool snapshots are included, not gated behind a separate contract. Historical depth typically covers from the genesis block of each indexed pool. Reorg-affected ranges are tracked with versioned audit logs so research and backtests stay reproducible.

How do you handle MEV, failed transactions, and chain reorgs?

Failed transactions are excluded from swap streams by default; they are available behind a flag for MEV and arbitrage research workflows. Chain reorgs are detected automatically: affected blocks are flagged in the WebSocket stream and the historical record is corrected with a versioned diff so downstream consumers can reconcile.

What's the JSON schema for a DEX swap or a pool?

Swaps return chain, protocol, pool, side, amount_in, amount_out, amount_in_usd, amount_out_usd, price_impact_bps, tx, block_number, ts. Pools return chain, protocol, address, token0, token1, fee_tier_bps, price, tvl_usd, liquidity, volume_24h_usd, block_number, ts. Field names are consistent across protocols where the underlying concept exists.

Can I detect new pool launches or new token listings?

Yes. The /v1/dex/pools/recent endpoint returns pools created within a configurable window, and the new_pool WebSocket channel emits new pool events in real-time, useful for new-listing detection, screening, and on-chain discovery flows.

How does the DEX & DeFi module relate to the Cryptocurrency (CEX) module?

DEX & DeFi is sold as a separate module from the CEX cryptocurrency module. The same SiftingIO API key authenticates both; your subscription tier determines which modules your key is entitled to. Customers can start with one and add the other without rotating credentials or changing client code.

99.9% SLA · Multi-chain · Same credential

Start building on DEX & DeFi data.

Free tier included, no sales call required. Add the DEX module to your account and hit the on-chain endpoints over REST or WebSocket, with the same auth, same schema, same SLA as the CEX module.