A high-performance automated trading bot for the Solana blockchain that executes trades based on predefined parameters and real-time market conditions.
- π Real-time Market Monitoring - Monitors pool creation, burns, and market conditions
- β‘ Fast Execution - Multiple transaction execution strategies (Default, Jito, Third-party)
- π― Smart Filtering - Configurable filters for pool size, metadata, and token properties
- π° Auto Trading - Automated buy/sell with take profit and stop loss
- π Snipe List Support - Trade specific tokens from a predefined list
- π Secure - Private keys never leave your machine
- Node.js 18+
- A Solana wallet with SOL
- USDC or WSOL for trading
-
Clone the repository
git clone https://github.com/z3roai/solana-trading-bot.git cd solana-trading-bot
-
Install dependencies
npm install
-
Configure the bot
cp .env.copy .env # Edit .env with your configuration
-
Run the bot
npm start
PRIVATE_KEY=your_wallet_private_key
RPC_ENDPOINT=https://your-rpc-endpoint.com
RPC_WEBSOCKET_ENDPOINT=wss://your-websocket-endpoint.com
COMMITMENT_LEVEL=finalized
LOG_LEVEL=info
ONE_TOKEN_AT_A_TIME=true
COMPUTE_UNIT_LIMIT=200000
COMPUTE_UNIT_PRICE=5000
PRE_LOAD_EXISTING_MARKETS=false
CACHE_NEW_MARKETS=true
TRANSACTION_EXECUTOR=default # Options: default, jito, third-party
CUSTOM_FEE=0.006 # SOL (for jito/third-party executors)
QUOTE_MINT=USDC # or WSOL
QUOTE_AMOUNT=10 # Amount to trade
AUTO_BUY_DELAY=1000 # ms
MAX_BUY_RETRIES=3
BUY_SLIPPAGE=1 # %
AUTO_SELL=true
MAX_SELL_RETRIES=3
AUTO_SELL_DELAY=1000 # ms
PRICE_CHECK_INTERVAL=5000 # ms
PRICE_CHECK_DURATION=300000 # ms
TAKE_PROFIT=50 # %
STOP_LOSS=20 # %
SELL_SLIPPAGE=1 # %
FILTER_CHECK_INTERVAL=1000 # ms
FILTER_CHECK_DURATION=30000 # ms
CONSECUTIVE_FILTER_MATCHES=2
CHECK_IF_MUTABLE=true
CHECK_IF_SOCIALS=true
CHECK_IF_MINT_IS_RENOUNCED=true
CHECK_IF_FREEZABLE=true
CHECK_IF_BURNED=true
MIN_POOL_SIZE=1000
MAX_POOL_SIZE=100000
USE_SNIPE_LIST=false
SNIPE_LIST_REFRESH_INTERVAL=30000 # ms
The bot supports multiple transaction execution strategies:
- Uses standard Solana RPC
- Configurable compute units and price
- No additional fees
- Uses Jito MEV infrastructure
- Faster transaction execution
- Custom fee structure
- Uses hosted transaction service
- Enhanced reliability
- Distributed fee structure
The bot monitors new liquidity pools and executes trades when:
- Pool creation time is after bot start
- Pool meets configured filters
- Token is not already owned
When AUTO_SELL=true
, the bot automatically sells tokens based on:
- Take Profit: Sell when profit reaches specified percentage
- Stop Loss: Sell when loss reaches specified percentage
- Time-based: Sell after specified duration regardless of profit/loss
Enable USE_SNIPE_LIST=true
to trade only specific tokens:
- Add token addresses to
snipe-list.txt
- Bot monitors for pool creation of listed tokens
- Filters are disabled when using snipe list
Configure filters to only trade tokens that meet specific criteria:
- Pool Size: Min/max liquidity requirements
- Metadata: Mutable/immutable token metadata
- Socials: Presence of social media links
- Mint Authority: Renounced mint authority
- Freezable: Non-freezable tokens
- Burned: Burned liquidity pools
Error: 410 Gone: The RPC call or parameters have been disabled
Solution: Use a reliable RPC provider like Helius or Quicknode
Error: No SOL token account found in wallet
Solution: Swap some SOL to USDC/WSOL in a DEX
- Increase
CUSTOM_FEE
for third-party executors - Check RPC endpoint reliability
- Verify wallet has sufficient SOL for fees
Set LOG_LEVEL=debug
for detailed logging to help diagnose issues.
- Private Keys: Never stored or transmitted
- Local Execution: All transactions signed locally
- No Data Storage: No transaction or wallet data stored externally
We welcome contributions from the community! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- π§ Follow the existing code style
- π Add comments for complex logic
- π§ͺ Test your changes thoroughly
- π Update documentation if needed
- π Report bugs using GitHub Issues
- π Performance optimizations
- π‘οΈ Security improvements
- π Additional trading strategies
- π¨ UI/UX enhancements
- π Documentation improvements
Important: This software is provided for educational purposes only.
Cryptocurrency trading involves significant risk and may result in financial losses. Past performance does not guarantee future results.
Use at your own discretion. The developers are not responsible for any financial losses incurred while using this bot.
- π° High Risk: Cryptocurrency trading is inherently risky
- π Volatility: Prices can change rapidly and unpredictably
- π― No Guarantees: There are no guarantees of profit
- β‘ Technical Risk: Software bugs or network issues may cause losses
This project is licensed under the MIT License - see the LICENSE.md file for details.
- β Commercial Use: Allowed
- β Modification: Allowed
- β Distribution: Allowed
- β Private Use: Allowed
β οΈ Liability: Limitedβ οΈ Warranty: No warranty provided
If you find this project helpful, consider supporting us:
- β Star this repository
- π Report bugs and issues
- π‘ Suggest new features
- π’ Share with the community
- β Buy us a coffee (if applicable)
Made with Z3roai