Free lightweight (~300 lines of code) and easy to use liquidity sniper bot based on Web3.py and Blocknative SDK.
Enable you to buy newly listed tokens on DEX in the first place.
Network | Router | Status |
---|---|---|
BSC | PancakeSwap | ✅ |
BSC | Biswap | ✅ |
BSC | ApeSwap | ✅ |
Ethereum | Uniswap | |
Ethereum | SushiSwap | |
Polygon | QuickSwap | |
Fantom | SpookySwap |
-
Install Python3
-
Register an account at Blocknative
-
Login and check your Blocknative API key
-
Follow the corresponding instructions below to get your wallet private key
-
Download and unzip this repository
-
Open config.py and change line 30 to
TO_TOKEN = "0x55d398326f99059fF775485246999027B3197955"
-
In terminal, enter following commands to create and enter virtual envrionment
python3 -m venv env
Linux or macOS
source env/bin/activate
Windows
env\Scripts\activate.bat
-
Install dependencies in virtual environment
pip install -r requirements.txt
-
Set environment varibale in virtual environment
Linux or macOS
export BLOCKNATIVE_KEY=<your Blocknative API key> export PRIVATE_KEY=<your wallet private key>
Windows
set BLOCKNATIVE_KEY=<your Blocknative API key> set PRIVATE_KEY=<your wallet private key>
-
In terminal, enter the following command
python3 main.py
-
Now, when someone add liquidity with USDT on BSC, you will spend 0.001 BNB to buy USDT with path [BNB, USDT paired token, USDT]