Git Product home page Git Product logo

sandwich-trade-bot-token-sniper's Introduction

Multichain Token Sniper

POM, DOGECHAIN, BSC, AVALANCHE, FTM, ETH, MATIC Token Sniper, Sandwich Trade, Buy, Take Profit And Rug-Check Function The token sniper listens for new blocks on-chain relating to the factory contracts. The createPair log event is emitted on the factory whenever a new liquidity pool is added. The sniper will filter the logs from these blocks to find these createPair events. Then with the correct RUG checks it will buy the token, after a certain amount of profit has been made it will automatically sell the token. The token sniper will also listen to the chain and filter out transactions which call the function addLiquidityETH these events will be sniped and go through the relevent checks.

Config

The Config is listed in appsettings.json There are values which you will have to set yourself, these are denoted with xxx.

Bsc Node and Http Api

Inside the config you will see BscHttpApi and BscNode keys. Both are obtained from https://moralis.io for free. You will have to navigate to Speedy Notes and click endpoints on the Bsc Network. image

Remember BscNode should be WS mainnet Endpoints and BscHttpApi should be Http endpoints image

Bsc Scan API Key

The BSC Scan API key is obtained for free from https://bscscan.com/myapikey

Rug Checks

There are specific checks involved that this sniper does when buying tokens. Some config values in appsettings.json inside SniperConfiguration are used to influence the rug checks. You can disable the Rug checks by setting the RugCheckEnabled to false. Be warned this is dangerous.

  1. Minimum % total supply in the liquidty pool. The config relating this value is called MinimumPercentageOfTokenInLiquidityPool. A example of this is if you want the token ZZZ to have atleast 90 percent of its supply inside the liqudity pool you can set this value to 90.
  2. The ability to scan contract source code and exclude buying from contracts when they include a specific string. The config key is called ContractRugCheckStrings
  3. Minimum amount of BNB (This can be changed to any other token by using LiquidityPairAddress) inside liquidity pool. The config key is called MinLiquidityAmount.
  4. Ensures liquidty pair created has one of the LiquidityPairAddress address
  5. If HoneypotCheck is true the sniper will try to buy the HoneypotCheckAmount, then it will try to sell it. If this operation is successful it will buy the SnipeAmount
  6. If RugdocCheckEnabled is true the sniper will use the Rugdoc honeypot checker to check the contract
  7. The WhitelistedTokens can be used to bypass any honeypot and rug checks. This field accepts multiple token addresses
  8. If the CheckRouterAddressInContract is enabled the sniper will check if the contract contains the router address
  9. If the OnlyBuyWhitelist is enabled the contract will only interact with whitelisted tokens

Buying

The amount to snipe is denoted in the config as AmountToSnipe. This value will trade the LiquidityPairAddress in your wallet with the coin to snipe at the current trade price. You can set a delay on the buying buy setting the value BuyDelaySeconds to greater than 0

Selling

The Sniper automatically sells once a certain percentage of profit is made. This is defined in the config key ProfitPercentageMargin

sandwich-trade-bot-token-sniper's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.