Repository: purpletrade/percolator-cli · License: Apache 2.0 · Language: TypeScript · Runtime: Node.js / tsx
What It Does
percolator-cli is a comprehensive command-line tool for interacting with the Percolator protocol on Solana. It supports all protocol operations: account management, trading, keeper cranking, LP setup, market analysis, and stress testing.
Installation
Configuration
Create~/.config/percolator-cli.json:
--rpc, --program, --wallet, --json, --simulate.
Commands
User Operations
Keeper Operations
Risk-increasing trades require a recent keeper crank — within the last 200 slots (~80 seconds). Run the crank before trading or use the crank bot for continuous operation.
LP Operations
Admin Operations
Market Analysis
Bots & Scripts
Keeper Bot
Continuous crank every 5 seconds:Random Traders
Simulates 5 traders with momentum bias, routing to the best LP by price:LP Setup
Create a vAMM-configured LP with matcher context + deposit:Market Setup
Full devnet market with funded LP and insurance:Stress Testing & Security
The CLI includes comprehensive stress tests and penetration testing scripts:Testing
Original Source
Forked fromaeyakovenko/percolator-cli.
View Repository
Full CLI source, scripts, bots, and stress tests