Swap Events

Every DEX swap on Solana, decoded and delivered

Stream real-time swap events from every major Solana DEX. Query historical trades via REST. Complete order flow data with pricing, reserves, and fees — ready for your bots, dashboards, and analytics.

Supported Markets

Access real-time data from Solana's leading DEXs

Pump.fun Logo
Pump.fun
PumpSwap Logo
PumpSwap
Raydium Logo
Raydium
Orca Logo
Orca
Meteora Logo
Meteora
Pump.fun Logo
Pump.fun
PumpSwap Logo
PumpSwap
Raydium Logo
Raydium
Orca Logo
Orca
Meteora Logo
Meteora
Pump.fun Logo
Pump.fun
PumpSwap Logo
PumpSwap
Raydium Logo
Raydium
Orca Logo
Orca
Meteora Logo
Meteora
Pump.fun Logo
Pump.fun
PumpSwap Logo
PumpSwap
Raydium Logo
Raydium
Orca Logo
Orca
Meteora Logo
Meteora
Meteora
Meteora Logo
Orca
Orca Logo
Raydium
Raydium Logo
PumpSwap
PumpSwap Logo
Pump.fun
Pump.fun Logo
Meteora
Meteora Logo
Orca
Orca Logo
Raydium
Raydium Logo
PumpSwap
PumpSwap Logo
Pump.fun
Pump.fun Logo
Meteora
Meteora Logo
Orca
Orca Logo
Raydium
Raydium Logo
PumpSwap
PumpSwap Logo
Pump.fun
Pump.fun Logo
Meteora
Meteora Logo
Orca
Orca Logo
Raydium
Raydium Logo
PumpSwap
PumpSwap Logo
Pump.fun
Pump.fun Logo
Real-Time

Stream every swap as it happens

Subscribe to a filtered stream of swap events via WebSocket or gRPC. Events are delivered within milliseconds of on-chain confirmation — fast enough for trading bots, copy trading, and real-time dashboards.

WebSocket streaming — JSON format, works natively in browsers. Subscribe with granular filters for tokens, traders, DEXs, and trade size.
gRPC streaming — Protobuf encoding for ~70% smaller payloads. Four dedicated RPC methods: StreamSwaps, StreamByToken, StreamByTrader, and StreamWhales.
Server-side filtering — Filter by token, trader, pool, DEX, direction, min/max SOL. Only receive the events you need.
websocket-stream.js
const ws = new WebSocket(
  "wss://ws.dexploit.dev/ws/json"
);

ws.onopen = () => {
  ws.send(JSON.stringify({
    type: "subscribe",
    filters: {
      dexes: ["pumpfun", "raydium_amm"],
      min_sol: 5000000000,
      is_buy: true
    }
  }));
};

ws.onmessage = (event) => {
  const swap = JSON.parse(event.data);
  if (swap.type === "swap") {
    console.log(
      swap.swap_type,
      swap.sol_amount / 1e9, "SOL",
      swap.dex
    );
  }
};
Historical Data

Query any swap, anytime

Eight REST endpoints for querying historical swap data. Look up trades by token, trader wallet, time range, or transaction signature. Built-in analytics for volume breakdowns, buy/sell ratios, and unique trader counts.

Flexible queries — Filter by DEX, token, trader, direction, time range, and slot range. Paginated results with configurable limits.
Built-in analytics — Trader stats (P&L, volume, trade count), token stats (unique traders, volume, buy/sell ratio), and global statistics.
Whale tracking — Dedicated endpoint for large trades above any SOL threshold. Find smart money moves instantly.
REST endpoints
GET
/swaps
Latest swaps with filters
GET
/swaps/range
Time or slot range queries
GET
/swaps/whale
Large trades above threshold
GET
/swaps/:signature
Single swap by tx signature
GET
/swaps/trader/:wallet
Trader history & analytics
GET
/swaps/token/:mint
Token history & analytics
GET
/api/v1/top-movers
Top gainers & losers
GET
/trending
Trending tokens & traders
Complete Data

Every field you need for order flow analysis

Each swap event includes full transaction context — not just price and amount, but pool reserves, price impact, fees, and decimal information. Everything is decoded and normalized so you can start analyzing immediately.

Transaction context — Signature, timestamp, slot, DEX protocol, token mint, and trader wallet address.
Pricing and amounts — SOL amount, token amount, price per token, price impact in basis points, fees, and creator fees.
Pool state — Virtual and real reserves for both SOL and tokens, plus base and quote decimal information.
swap-event.json
{
  "signature": "5K7x...mQpV",
  "timestamp": 1708934521,
  "slot": 245892301,
  "dex": "pumpfun",
  "token_mint": "7GCi...pump",
  "trader": "Dxp9...4kWz",
  "is_buy": true,
  "sol_amount": 1500000000,
  "token_amount": 892451000000,
  "price_per_token": 0.00000168,
  "price_impact_bps": 12,
  "fee": 15000000,
  "creator_fee": 7500000,
  "virtual_sol_reserves": 30000000000,
  "virtual_token_reserves": 1073000000000000,
  "real_sol_reserves": 7500000000,
  "real_token_reserves": 268250000000000,
  "base_decimals": 6,
  "quote_decimals": 9
}

Who is Swap Events for?

Trading Bots

Power automated strategies with real-time swap data. React to trades instantly across all major DEXs.

Copy Trading

Monitor whale wallets and successful traders. Get instant alerts when they make moves and replicate strategies.

Analytics Dashboards

Build real-time dashboards showing volume, buy/sell pressure, and trader activity across Solana DEXs.

Order Flow Analysis

Track buy/sell pressure and detect accumulation or distribution patterns. Identify smart money flows.

Sniping & MEV

Detect new token launches and early trades on Pump.fun and PumpSwap. Build fast-execution strategies.

Backtesting

Use historical swap data to backtest trading strategies. Analyze past market conditions with full order flow context.

Quick Start

Integrate in minutes

Get your API key and start querying swap data with a few lines of code. No complex setup, no SDK required.

1

Get your API key

Sign up for a free account and get your API key instantly from the dashboard.

2

Query or stream swaps

Use the REST API for historical data or connect via WebSocket/gRPC for real-time streaming.

3

Build your application

Parse decoded swap events and build trading bots, dashboards, or analytics tools.

Get started
whale-tracker.ts
const API = "https://api.dexploit.dev";

// Get whale trades (>10 SOL)
const res = await fetch(
  `${API}/api/v1/swaps/whale?min_sol=10000000000`,
  {
    headers: {
      "Authorization": "Bearer YOUR_API_KEY",
      "X-API-Key": "YOUR_API_KEY"
    }
  }
);

const { swaps } = await res.json();

for (const swap of swaps) {
  const sol = swap.sol_amount / 1e9;
  const dir = swap.is_buy ? "BUY" : "SELL";
  console.log(
    `${dir} ${sol.toFixed(2)} SOL`,
    `| ${swap.dex}`,
    `| ${swap.token_mint.slice(0, 8)}...`
  );
}
7
DEX protocols
<5ms
Event latency
500+
Swaps per second
99.9%
Uptime

FAQs

We currently support 7 Solana DEX protocols: Pump.fun, PumpSwap, Raydium AMM, Raydium CLMM, Raydium CPMM, Orca, and Meteora. We're continuously adding new protocols based on trading volume and developer demand.

The REST API is best for querying historical swap data — look up past trades by token, trader, or time range. WebSocket and gRPC streaming deliver swaps in real-time as they happen on-chain. Use REST for analytics and backtesting, streaming for live trading and monitoring.

You can filter by token mint, trader wallet, pool address, DEX type, trade direction (buy/sell), and minimum/maximum SOL amount. Filters are applied server-side so you only receive the events you care about, reducing bandwidth and processing overhead.

Each swap includes: signature, timestamp, slot, DEX type, token mint, trader wallet, direction (buy/sell), SOL amount, token amount, price per token, price impact, fees, creator fees, and full pool reserve data (virtual and real reserves for both SOL and tokens).

WebSocket delivers JSON and works natively in browsers — ideal for dashboards and web apps. gRPC uses Protobuf encoding for ~70% smaller payloads and offers 4 specialized RPC methods (StreamSwaps, StreamByToken, StreamByTrader, StreamWhales) — ideal for high-performance trading bots.

Swap events are typically delivered within 5ms of on-chain confirmation. Our infrastructure uses high-performance message streaming and Rust-based processing to minimize latency at every step of the pipeline.

experience the difference

Ready to build?

Get your free API key and start streaming real-time swap events from every major Solana DEX. REST for historical queries, WebSocket and gRPC for live data.