Defi PancakeSwap bot is programmed in Python to buy and sell tokens in seconds once the target is hit.

Overview

LinkedIn


Logo

Defi PancakeSwap BOT

A BOT that will make easy your life in Trading.
Watch tutorial on Youtube

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. Contact

About The Project

Decentralized market is too volatile to trade, So I have come up with this BOT so you can get more profit by selling and buying tokens at better prices, also the trade will be executed in seconds.

Defi PancakeSwap BOT is programmed in Python to buy and sell tokens once the target is hit, or can also be automated.

Let me know if you get unexpected errors so that I can update the code because it has a lot of scenarios to cover.

Built With

Getting Started

Follow the commands

Prerequisites

  • Go to path folder

  • Create a python virtual environment

    python -m venv defi-env
    pip install -r requirements.txt

Up and Running

  1. Go to Folder Path
  2. Type in Command Line
    python DeFiTranscation.py
  3. Enter Token address for a Trade
  4. Enter what type of Target to Hit Up, Down or UpDown
  5. Enter your Target Price
  6. Wait for target to Hit
  7. You'll get an alert system.beep
  8. Option to how much coin you want to sell ( Or you simply can Automate it, by changing bit code as explained in the Youtube Tutorial

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Branch
  3. Commit your Changes
  4. Push to the Branch
  5. Open a Pull Request

Contact

For queries comment at https://www.youtube.com/watch?v=cSel-wyrTFI

If you enjoyed the bot do give a Star :)

Comments
  • I had to re-open ticket Error message, cannot get it up and running?? #12

    I had to re-open ticket Error message, cannot get it up and running?? #12

    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....

    opened by HHawk 15
  • Win32gui requirements file error.

    Win32gui requirements file error.

    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.

    opened by ZooBuZZ 11
  • list index out of range

    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

    opened by Bcarslen 11
  • Error message, cannot get it up and running??

    Error message, cannot get it up and running??

    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.

    opened by HHawk 10
  • Bot not Working!!!!

    Bot not Working!!!!

    Hey, first of all thank you for your bot, it's an amazing bot. However, this bot can't seem to run on my system it's showing me some kind of error can you please take a look? Thank you.

    image

    opened by uzairgabol 5
  • How to run on MacOS

    How to run on MacOS

    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'
    
    
    opened by janeroseloving 2
  • Feature request - Automation

    Feature request - Automation

    This is a solid project. I would like to see an extension that I think would add value to the bot.

    Scenario 1 (Fixed limits)

    • The ability to set a static range with low and high inputs.
    • This would allow the user to enter a low of 0.1 for example, so the script would buy at $0.10.
    • The user could also set a high of 0.9 and the script would sell at $0.90
    • Considerations would be to add logic so that the script knows whether the last action was a buy or sell, so it will ignore a buy signal if the last was a buy

    Scenario 2 (Percentage based limits)

    • The ability to set a percentage based range
    • The user can set the script to buy when the current price is n% lower than the last sell price
    • The user can set the script to sell when the current price is n% higher than the last buy price

    Addtional considerations

    • DCA in/out
    • Add percentage of account value

    I will record a priv. screencast detailing the aforementioned scenario

    opened by markbell2410 2
  • Unable to run Bot

    Unable to run Bot

    So I was able to to start the bot, but after I enter the contract I got an error.

    image

    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"

    opened by Angel2298 2
  • On Ubuntu 20.04

    On Ubuntu 20.04

    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

    opened by msilas007 1
  • Run on linux?

    Run on linux?

    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

    opened by Eimuex 1
  • Issue Sell

    Issue Sell

    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?

    opened by aleeepp 1
  • Runtime Error

    Runtime Error

    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

    opened by ImtiyazG 1
  • Value transfer did not complete from a contract execution reverted

    Value transfer did not complete from a contract execution reverted

    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

    opened by ThreeApples777 1
Owner
Zain Ullah
In ❤ with data, programming 🖥 and cricket 🏏. I'm from Pakistan 🇵🇰, currently studying Data science from Sapienza University Rome, Italy 🇮🇹.
Zain Ullah
❄️ Don't waste your money paying for new tokens, once you have used your tokens, clean them up and resell them!

TokenCleaner Don't waste your money paying for new tokens, once you have used your tokens, clean them up and resell them! If you have a very large qua

0xVichy 59 Nov 14, 2022
Tools for use in DeFi. Impermanent Loss calculations, staking and farming strategies, coingecko and pancakeswap API queries, liquidity pools and more

DeFi open source tools Get Started Instalation General Tools Impermanent Loss, simple calculation Compare Buy & Hold with Staking and Farming Complete

Juan Pablo Pisano 467 Jan 8, 2023
Web3 Ethereum DeFi toolkit for smart contracts, Uniswap and PancakeSwap trades, Ethereum JSON-RPC utilities, wallets and automated test suites.

Web3 Ethereum Defi This project contains common Ethereum smart contracts and utilities, for trading, wallets,automated test suites and backend integra

Trading Strategy 222 Jan 4, 2023
Andrei 1.4k Dec 24, 2022
null 471 Dec 24, 2022
A web app via which users can buy and sell stocks using virtual money

finance Virtual Stock Trader. A web app via which users can buy and sell stocks using virtual money. All stock prices are real and provided by IEX. Fe

Kiron Deb 0 Jan 15, 2022
Pancakeswap Sniper Bot GUI Uniswap Matic 2022 (WINDOWS LINUX MAC) AUTO BUY TOKEN ON LAUNCH AFTER ADD LIQUIDITY

Pancakeswap Sniper Bot GUI Uniswap Matic 2022 (WINDOWS LINUX MAC) ⭐️ AUTO BUY TOKEN ON LAUNCH AFTER ADD LIQUIDITY ⭐️ ⭐️ First GUI SNIPER BOT for WINDO

Crypto Trader 1 Jan 5, 2022
OpenSea Bulk Uploader And Trader 100000 NFTs (MAC WINDOWS ANDROID LINUX) Automatically and massively upload and sell your non-fungible tokens on OpenSea using Python Selenium

OpenSea Bulk Uploader And Trader 100000 NFTs (MAC WINDOWS ANDROID LINUX) Automatically and massively upload and sell your non-fungible tokens on OpenS

ERC-7211 3 Mar 24, 2022
Buy early bsc gems with custom gas fee, slippage, amount. Auto approve token after buy

Buy early bsc gems with custom gas fee, slippage, amount. Auto approve token after buy. Sell buyed token with custom gas fee, slippage, amount. And more.

Jesus Crypto 206 May 1, 2022
Change the name and pfp of ur accounts, uses tokens.txt for ur tokens.

Change the name and pfp of ur accounts, uses tokens.txt for ur tokens. Also scrapes the pfps+names from a server chosen by you. For hq tokens go to discord.gg/tokenshop or t.me/praisetelegram

cChimney 36 Dec 9, 2022
Get informed when your DeFI Earn CRO Validator is jailed or changes the commission rate.

CRO-DeFi-Warner Intro CRO-DeFi-Warner can be used to notify you when a validator changes the commission rate or gets jailed. It can also notify you wh

null 5 May 16, 2022
DeFi wallet on Chia Network.

DeFi wallet on Chia Network.

GobyWallet 21 Aug 12, 2022
A Pancakeswap and Uniswap trading client (and bot) with limit orders, marker orders, stop-loss, custom gas strategies, a GUI and much more.

Pancakeswap and Uniswap trading client Adam A A Pancakeswap and Uniswap trading client (and bot) with market orders, limit orders, stop-loss, custom g

null 570 Mar 9, 2022
A management system designed for the employees of MIRAS (Art Gallery). It is used to sell/cancel tickets, book/cancel events and keeps track of all upcoming events.

Art-Galleria-Management-System Its a management system designed for the employees of MIRAS (Art Gallery). Backend : Python Frontend : Django Database

Areesha Tahir 8 Nov 30, 2022
A Pancakeswap v2 trading client (and bot) with limit orders, stop-loss, custom gas strategies, a GUI and much more.

Pancakeswap v2 trading client A Pancakeswap trading client (and bot) with limit orders, stop-loss, custom gas strategies, a GUI and much more. If you

null 571 Mar 15, 2022
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) First SNIPER BOT for ANDROID with honeypot detector Web3 Pancakeswa

HYDRA 1 Dec 23, 2021
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

?? Pancakeswap BSC Sniper Bot web3 with honeypot detector (ANDROID WINDOWS MAC LINUX) ?? ⭐️ ⭐️ ⭐️ First SNIPER BOT for ANDROID & WINDOWS with honeypot

HYDRA 2 Dec 24, 2021
Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

Web3 Pancakeswap Sniper & honeypot detector Take Profit/StopLose bot written in python3, For ANDROID WIN MAC & LINUX

HYDRA 3 Dec 27, 2021