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
































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.
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
);
}
};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.
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.
{
"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.
Integrate in minutes
Get your API key and start querying swap data with a few lines of code. No complex setup, no SDK required.
Get your API key
Sign up for a free account and get your API key instantly from the dashboard.
Query or stream swaps
Use the REST API for historical data or connect via WebSocket/gRPC for real-time streaming.
Build your application
Parse decoded swap events and build trading bots, dashboards, or analytics tools.
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)}...`
);
}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.
Related Products
Combine with other Dexploit APIs for a complete data stack
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.