DEX Integration Guide
Integrating Jupiter, Raydium, and Orca into your Solana application.
Integrating with Solana's DEX ecosystem is a core requirement for most trading applications. The three primary integration paths are Jupiter (aggregator), Raydium (AMM), and Orca (concentrated liquidity).
Jupiter Integration is the recommended starting point for most applications. Jupiter aggregates liquidity across all major DEXes and automatically routes swaps through the best available path. The Jupiter API provides simple REST endpoints for quotes and swap transactions. For most use cases, you don't need to integrate individual DEXes directly — Jupiter handles routing complexity automatically.
Raydium Direct Integration is necessary when you need to interact with Raydium-specific features: creating liquidity pools, managing positions, or monitoring pool state in real time. The Raydium SDK v2 provides TypeScript bindings for all Raydium programs.
Orca Whirlpools are Solana's primary concentrated liquidity implementation. The @orca-so/whirlpools SDK provides tools for creating positions, adding/removing liquidity, and executing swaps within specific price ranges.
Real-time Pool Monitoring
For trading applications that need to monitor DEX prices in real time, subscribe to gRPC account updates for pool accounts. Pool state accounts contain reserve amounts that can be used to calculate current prices.