zainachak / defi_pancakeswapbot Goto Github PK
View Code? Open in Web Editor NEWDefi PancakeSwap bot is programmed in Python to buy and sell tokens in seconds once the target is hit.
License: MIT License
Defi PancakeSwap bot is programmed in Python to buy and sell tokens in seconds once the target is hit.
License: MIT License
I get this error when I try to run the program and enter a token's contract address. So far only ELONTECH token is working and none other tokens work.
File abi.py", line 38, in findAbi
f.write(abi[0].text)
IndexError: list index out of range
issue with bs4 getting price from arken finance
line 125, in runCode
price = float(page_soup.find_all("b", {"class": "number"})[0].text[1:].replace(",", ""))
IndexError: list index out of range
No matter what I do, I keep running into this error
I have fixed the clear command, I have tried using only Firefox drives instead of Chrome, I have tried different contact addresses, this error always comes out, I'm a noob to python and javascript
Hi,
I get this error when trying to run the 'pip install -r requirements.txt' line. I am a fairly large noob with python though.
ERROR: Could not find a version that satisfies the requirement win32gui==221.6 (from versions: 221.3, 221.4, 221.5)
ERROR: No matching distribution found for win32gui==221.6
I really need to find a bot that will allow me to sell a token. I'm also in a discord with lots of other people who need help too.
We got scammed hard by this stupid token: https://coinmarketcap.com/currencies/squid-game/
I've heard people have been able to sell using mempool bots. Would you be able to test it for me and see if you can sell any of this coin with your bot? I'll send some squid coin over and you can just keep it. I just need to find a way to sell some of mine.
issue with bs4 getting price from arken finance
line 125, in runCode
price = float(page_soup.find_all("b", {"class": "number"})[0].text[1:].replace(",", ""))
IndexError: list index out of range
Is it possible to set into which token we want to sell?
python3 DeFiTranscation.py
Traceback (most recent call last):
File "/Users/meta/Desktop/DeFi_PanCakeSwapBot/DeFiTranscation.py", line 9, in <module>
import winsound
ModuleNotFoundError: No module named 'winsound'
So I was able to to start the bot, but after I enter the contract I got an error.
First of all I got an error with lxml.
So for that I just did pip install lxml
and the error was corrected. But know this is the error that I got and I don´t know why cause I just checked all the code in that part and also I tried with the ETCH contract that you use in the video and got the same error that "list out of index"
Hi is there a way to set the slippage in % to get tokens from pankakeswap?
I got the error Address None must be provided as a string, even if i put the adess in config.py
When a Down target was hit and I performed a buying action, the terminal showed:
Last Trade result: Bought 0.023 BNB of HERO
Tx : https://bscscan.com/tx/0x0effeea37e83046f2332a476058a34c43c1f83b57e859dd105ed65f9ec46de08
Error message on Bscscan:
value transfer did not complete, most likely as a result of a revert opcode
Refresh bscscan page after a few seconds, error message changed to:
value transfer did not complete from a contract execution reverted
Support BUSD liquidity ?
Hello, I tried to run bot on linux and got:
Traceback (most recent call last):
File "DeFiTranscation.py", line 9, in
import winsound
ModuleNotFoundError: No module named 'winsound'
I found that winsound is windows only module. Is there any possible workaround?
Thank you
Hi ZainAchak!
(posted it first in a closed thread, my bad)
Well I fixed several issues I was experiencing, however I cannot get past this error:
Traceback (most recent call last):
File "C:\pancakeswapbot\abi.py", line 17, in tokenAbi
with open(f"data/{filename}") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'data/ABI_0x679D5b2d94f454c950d683D159b87aa8eae37C9e.txt'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\pancakeswapbot\DeFiTranscation.py", line 291, in <module>
runCode()
File "C:\pancakeswapbot\DeFiTranscation.py", line 133, in runCode
BNB_balance, TokenSymbol, NoOfTokens, params = InitializeTrade()
File "C:\pancakeswapbot\DeFiTranscation.py", line 66, in InitializeTrade
sellTokenAbi = tokenAbi(TokenToSellAddress, driver)
File "C:\pancakeswapbot\abi.py", line 21, in tokenAbi
abi = findAbi(address, driver)
File "C:\pancakeswapbot\abi.py", line 41, in findAbi
driver.get("chrome://settings/clearBrowserData");
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get
self.execute(Command.GET, {'url': url})
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\IEUser\AppData\Local\Programs\Python\Python310\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: Malformed URL: URL constructor: chrome://settings/clearBrowserData is not a valid URL.
Also this line is weird: FileNotFoundError: [Errno 2] No such file or directory: 'data/ABI_0x679D5b2d94f454c950d683D159b87aa8eae37C9e.txt'
The file is in there! So no clue why he cannot find it. The script even created it!
Though it only has empty variables in it...
Any idea perhaps? Thanks.
Hi great project!!!
I get this error when trying to sell : "Fail with error 'TransferHelper: TRANSFER_FROM_FAILED'"
Do you have an idea of the isseu?
I am getting transfer_failed error , execution reverted when bot buy.
This is a solid project. I would like to see an extension that I think would add value to the bot.
I will record a priv. screencast detailing the aforementioned scenario
Sorry, but I had to re-open the ticket again: I had to re-open ticket Error message, cannot get it up and running?? #12
Still not solved, probably doing something wrong....
when busd pair?
Can sound alert be turned off? If you run bot on rdp the most of them doesnt have audio driver installed, so bot is throwing error on price hit and it doesnt buy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.