This app is the open source content of a larger trading bot it can work as a stand alone trading bot it automates the process of finding, validating, and trading newly listed Solana tokens using public APIs from Raydium, DexScreener, RugCheck, and CoinGecko.
- Fetch latest token listings from DexScreener
- Validate tokens using:
- Age (min/max)
- Raydium liquidity
- Market cap and FDV ratio
- RugCheck risk score
- Fetch real-time SOL and token prices
- Fetch Raydium swap and sell quotes
- Serialize, deserialize, sign, and send transactions using Raydium SDK
- Graceful retry logic for transactions
project/
├── trade.js # Main logic
├── config.js # Wallet, connection, helper functions
├── package.json # Dependencies
Each token is filtered using:
- Age: Between 10 minutes and 6000 minutes old
- Liquidity: > $100
- Market Cap: > $100
- Market Cap/FDV Ratio: > 0.5
- RugCheck Risk Score: ≤ 1
Uses https://api.dexscreener.com/token-profiles/latest/v1 to get new Solana tokens.
Cross-checks token data with:
- DexScreener Raydium pairs
- RugCheck API
- Market metrics
Fetches SOL/USD from CoinGecko.
Gets token USD price from DexScreener.
Uses Raydium SDK to simulate a buy in SOL.
Estimates return for full token sell to SOL.
- Serializes Raydium transaction from swap quote
- Signs and sends transaction with retry and confirmation logic
- Node.js >= 18
@solana/web3.js@solana/spl-token@raydium-io/raydium-sdk-v2axios
npm installUpdate your .env with:
- RPC connection
- Wallet keypair (
owner) - Optional: Token account helpers
node trade.js- Not all tokens listed are safe. This script filters, but does not guarantee safety.
- For CLI use or browser extensions.
- Raydium SDK uses lamports (1e9 = 1 SOL).
This tool is provided for educational and research purposes. Always do your own due diligence before trading new tokens.
Open an issue or reach out if you want to collaborate, integrate this into your bot, or turn this into a full UI.