The complete reference for AMM v4, CPMM, CLMM, Farm, LaunchLab, and Perps —
on-chain accounts, math, instructions, fees, SDK, and runnable code.
Choose your track
Build and integrate. Quick start, SDK, REST API, Anchor IDL, Rust CPI patterns, Python.
Open SDK & API →Audit and analyze. Architecture, algorithms, account state machines, fee economics, risk surface.
Read protocol overview →Use Raydium safely. Wallet setup, your first swap, providing liquidity, claiming rewards.
Get started →Six on-chain programs
Each chapter follows the same template — overview, accounts, math, instructions, fees, runnable code.
Hybrid AMM with OpenBook integration. Deepest liquidity for many pairs.
Standard constant-product. Token-2022 native. Recommended for new pools.
Concentrated liquidity. Capital-efficient market making across price ranges.
Reward distribution. Up to 5 streams. Token-2022 staking on v6.
Bonding-curve token launches. Configurable curves, creator fees, graduation.
Perpetual futures via Orderly Network. REST + WebSocket + Ed25519 signing.
Quick start
Install the SDK, fund a Devnet wallet, and execute a swap end-to-end. Then drill into the SDK & API chapter for the full builder reference.
Open source
Spotted a stale code sample, a wrong program ID, or a confusing explanation? Open an issue or send a PR. Translators welcome — Chinese skeleton is in place.