A Pancakeswap V2 listing sniper bot on the bincance smart chain, includes a simple GUI and much more.
If you have any questions or inquiries, you can contact me via telegram: meadsy
- An BSC address
- A Windows machine x64
-
Read prerequisites
-
Download the latest release or download "configfile.py", "tokens.json", "main.exe" from the repository.
-
Open "configfile.py" (with notepad for instance) and add your ethereum address and personal key at the bottom of the file between the quotation marks('').
... my_address = '' my_pk = ''
- Run "main.exe"
- Make sure the three files are in the same folder otherwise this program will not run.
- Edit settings according to choice.
Get Total Wallet Balance: A list of tokens that are listed in the tokens.json are used to retrieve the token balance from your wallet and the token price to calculate your total price from pancakswap.
Get Token Balance: The balanace/price is retrieved from the token that is either selected from the token dropdown in the GUI or is specificed in the configfile.py.
Snipe: If the liquidty check toggle is set to true, a concurrent thread is created to continuosly check the liquidity. Firstly, the bot will check if the selected pair contract is avaiable on the pancakeswap factory contract (for example SAFEMOON/WBNB), if true the loop will start which will then check if the liquidity is available on the panacakeswap router for that specificed contract. Once liquidity is available the trade funcdtion is called. If the liquity check toggle is set to false, the trade function will start.
How fast liquidity checking The amount of time the bot has to wait per liquidity check. If this is set at 0ms, its fine.
Only buy if price is less than (limit buy)
This so you wont buy a token for too much
Max overall slippage The max slippage you want the bot to handle. Can be set from 1 to 100%. 100%= the bot only will accept a trade if the minimal amount of tokens it gets is 0 (=always accepting). Slippage is the expected % difference between these quoted and executed prices. Low liquidity can also cause increased slippage, which is why larger orders tend to face higher slippage.
GWEI to use for trade The amount of GWEI you want to use for a trade. Remember to keep this 10-15 (when bsc is not the usual 5 GWEI) for testing. But for sniping much higher. How much higher depends on the token (how much people are going to snipe), your latency with the RPC and if you really want to compete with the fastest guys, or just don’t want to make a proft. The fastest snipes use the highest GWEI and are only worth it when you play with a lot of BNB. https://bscscan.com/tx/0xc13c8150dc5eb37fde31cc9d155349af57a2b0973e35f0cd82942c6459b29 bd6
Sell when price is higher than (Limit sell) Limit sell option. If the current price of the token is higher than the amount set here, the bot will buy.
Sell when token is this much higher than start (= Sell when you have this much profit ,if you would sell) The amount of profit you want to have, and want to sell for. This is not the profit that you are going to make, there is still slippage.
Custom slippage for selling The slippage you want the bot to handle specially for selling. Can be set from 1 to 100%. 100%= the bot only will accept a trade if the minimal amount of BNB it gets is 0 (=always accepting). If you don’t check it, it will use the overall slippage. Slippage is the expected % difference between these quoted and executed prices. Low liquidity can also cause increased slippage, which is why larger orders tend to face higher slippage.
Gas limit Please set this at 700000, so an order will never fail because you didn’t accept a higher gas.
Sell this many times Perform a sell in multiple orders. In the future this will get more advanced, with different profits you accept as sniper per number of order in a sequency.
Only sell token, don’t buy Will ignore settings that have to do with buy, and will only sell token
Token address: Fill the token address of the token you want to trade (such as 0x0000000000000000000000000000000000000000)
Token name: The name of the token, fill it in yourself
Dec.: The amount of decimals the token operates with (18 is normal)
Sell(£): The price you want the trader to sell the token for (0.01 = 1 dollar cent)
Buy(£): The price you want the trader to buy the token for (0.01 = 1 dollar cent)
Different deposit address: Use this if you want the swap output to go to a different wallet address. There is a toggle for true/false and a field in config.py for the different address.
- Some tokens or trading amounts are not possible to trade with, due to this issue: ethereum/web3.py#1634 This is the error-message you get: "Python int too large to convert to C ssize_". If you get this error its best to exclude the token (which probably has a very low price per token) or trade with lower amounts.
- Sloppy dinamic design of GUI
- Sometimes lag when updating names or when starting the bot (0-10 seconds)
- More: Let me know!
- Let the amount of decimals and the token-name be derived automatically (like in the uniswap-bot)
- Add pcs v1 support
- New, more user-friendly design
- Fix "Python int too large to convert to C ssize_"
(Depends on whether the application is used)
If you have any questions you can contact me via telegram: meadsy92
Donations: 0xEE2FB21ecf35bc3f061b780Ebb3bf0299337EFc0