A real-time token scanner and trading bot for the Solana blockchain. This bot monitors new token creations, analyzes their potential, and can execute trades based on configurable strategies.
- Real-time token creation monitoring using WebSocket subscriptions
- Token metadata and liquidity analysis
- Support for both Mainnet and Devnet
- Web interface for monitoring and control
- Automatic trading capabilities (configurable)
- Detailed logging and transaction history
- Python 3.9+
- Node.js 16+ (for frontend)
- Solana CLI tools
- A Solana wallet with some SOL for transactions
- Clone the repository:
git clone https://github.com/yourusername/crypto-bot.git
cd crypto-bot
- Set up the Python virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt
- Install frontend dependencies:
cd src/frontend
npm install
- Create a
.env
file in the root directory:
WALLET_PRIVATE_KEY=your_private_key_here
SOLANA_NETWORK=mainnet # or devnet
SOLANA_RPC_URL=your_rpc_url_here # Optional: custom RPC URL
- Start the backend API:
cd src
uvicorn api.api:app --reload
- Start the frontend development server:
cd src/frontend
npm run dev
- Run the token scanner:
python src/test_ws_scanner.py
- Network settings can be changed in
src/config.py
- Trading parameters can be adjusted in
src/token_buyer.py
- Frontend configuration is in
src/frontend/src/App.tsx
src/scanner.py
: Token detection and analysissrc/token_buyer.py
: Trading logicsrc/config.py
: Configuration managementsrc/api/
: FastAPI backendsrc/frontend/
: React frontend
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Never commit your private keys or sensitive information
- Use environment variables for sensitive data
- Be careful with RPC endpoints and rate limits
- Monitor your wallet activity regularly
This bot is for educational purposes only. Cryptocurrency trading carries significant risks. Always do your own research and never trade with funds you can't afford to lose.