Links

Arguments and Functions

Argument Parser
This script uses the argparse module to specify and parse command line arguments for Sniper Bot.
Attention, when testing the bot, don't forget to consider the transaction fees on the Binance Smart Chain. If you use 0.001 BNB to buy and sell a token, you will pay more fees in transactions than you traded. Thus, you will only see a decrease on your wallet.

Available Arguments

-t or --token

  • A string argument that specifies the token for snipe e.g. -t 0x34faa80fec0233e045ed4737cc152a71e490e2e3.

-a or --amount

  • A float argument that specifies the amount in BNB to snipe e.g. -a 0.1. Default value is 0.

-tx or --txamount

  • An integer argument that specifies how many transactions you want to send. This splits your BNB amount. For example, -tx 5. Default value is 1.

-sp or --sellpercent

  • An integer argument that specifies the percentage of tokens you want to sell. For example, -sp 80. Default value is 100.

-hp or --honeypot

  • A boolean argument that checks if the token you want to buy is a honeypot. To use, type -hp or --honeypot. Default value is False.

-nb or --nobuy

  • A boolean argument that skips the buy process if you only want to use TakeProfit/StopLoss/TrailingStopLoss. To use, type -nb or --nobuy.

-tp or --takeprofit

  • An integer argument that specifies the percentage of your input BNB amount for TakeProfit. For example, -tp 50. Default value is 0.

-sl or --stoploss

  • An integer argument that specifies the percentage of your input BNB amount for StopLoss. For example, -sl 50. Default value is 0.

-tsl or --trailingstoploss

  • An integer argument that specifies the percentage of your first quote for TrailingStopLoss. For example, -tsl 50. Default value is 0.

-wb or --awaitBlocks

  • An integer argument that specifies the number of blocks to wait before sending the BUY transaction. For example, -wb 50. Default value is 0.

-cmt or --checkMaxTax

  • A boolean argument that gets the token tax and checks if it is higher. To use, type -cmt or --checkMaxTax.

-cc or --checkcontract

  • A boolean argument that checks if the contract is verified and looks for certain functions. To use, type -cc or --checkcontract.

-so or --sellonly

  • A boolean argument that sells all your tokens from the given address. To use, type -so or --sellonly.

-bo or --buyonly

  • A boolean argument that buys tokens with the given amount. To use, type -bo or --buyonly.

-cl or --checkliquidity

  • A boolean argument that checks liquidity. To use, type -cl or --checkliquidity.

-dsec or --DisabledSwapEnabledCheck

  • A boolean argument that checks via a contract call if the token is Buyable or not.