You do not need to write any code yourself. The entire bot can be generated in under five minutes using Claude, Anthropic's AI assistant. Go to claude.ai, start a new conversation, and paste the following prompt exactly as written.
This first prompt builds the complete bot:
Build me a Python Uniswap V3 volume bot. I need four files: bot.py, config.py, requirements.txt, and .env.example. The bot must: connect to any EVM chain via RPC URL; load all settings from a .env file using python-dotenv; support wallet auth via either a 12-word MNEMONIC or a raw PRIVATE_KEY (not both simultaneously); execute random buy or sell swaps on a Uniswap V3 pool between TRADE_MIN_USD and TRADE_MAX_USD dollar amounts; wait a random number of seconds between INTERVAL_MIN_SEC and INTERVAL_MAX_SEC after each trade; enforce a hard daily gross buy spend cap of DAILY_SPEND_LIMIT_USD that resets at UTC midnight; include a DRY_RUN mode that simulates everything without sending real transactions; log every event with a UTC timestamp, direction, dollar amount, estimated token quantity, current price, and wallet balances; gracefully handle not enough token balance by switching to a buy, and not enough USDC by switching to a sell; stop trading and log a warning if ETH balance drops below MIN_ETH_FOR_GAS; print a daily summary showing total spent and total gained. Use web3.py for all blockchain interactions. Include full comments in the code explaining each section.
Claude will output all four files. Create a folder on your computer โ for example C:\trading-bot โ and save each file there with its exact name. Do not rename them.
If the bot generates any errors when you first run it, paste the error message back into the same Claude conversation and ask it to fix the issue. Claude will diagnose the problem and give you an updated file. This iterative approach โ run, paste error, get fix โ typically resolves any environment-specific issues within two or three exchanges.
For chain-specific issues such as ABI errors or router incompatibilities, use this follow-up prompt:
The bot is running on [your chain name, e.g. Doma OP Stack L2]. The Uniswap V3 router address is [paste your router address]. I am getting this error: [paste the exact error message]. Please fix the bot.py file to resolve this.
Replace the text in square brackets with your actual details before sending. Always paste the complete error message โ the line number and error type are what Claude needs to diagnose the problem accurately.