609 B
609 B
Raydium CPMM Trading
Consumes Raydium CPMM events from solana-streamer-sdk, maps event pool data into SDK params, then performs one buy and sell.
This is a live-transaction template. Set
PRIVATE_KEY, RPC/stream configuration, target filters, amounts, and fee settings before running.
cargo run --package raydium_cpmm_trading
Production bots must initialize the trading client and blockhash cache before subscription, filter and deduplicate events, reject stale events, and refresh state before delayed sells. The current code focuses on CPMM parameter mapping.