Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.
/ deadshot Public archive

πŸ“ˆ Trading bot with support for multiple evm compatible blockchains

License

Notifications You must be signed in to change notification settings

jon4hz/deadshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

63 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

deadshot

testing lint goreleaser Go Report Card

      _                _     _           _   
   __| | ___  __ _  __| |___| |__   ___ | |_ 
  / _` |/ _ \/ _` |/ _` / __| '_ \ / _ \| __|
 | (_| |  __/ (_| | (_| \__ \ | | | (_) | |_ 
  \__,_|\___|\__,_|\__,_|___/_| |_|\___/ \__|
                                              
  ( Ο†_<)︻┻┳══━一 - - - - - - - - - - - - πŸ’₯   

A terminal based trading bot

About

deadshot is a terminal based trading bot that allows you to trade tokens on any dex that implements the uniswap v2 interface.
You can either swap tokens to the current market price or set limit orders based on price or % targets.
All trades will be made on chain.

Implemented networks

  • Polygon
  • Binance Smart Chain
  • Fantom
  • Cronos

Limitations

  • Only one buy target is supported
  • The bot relies on a good connection with unlimited requests to a blockchain node. There might be bugs and weird behavior if these conditions are not met.
    There are some nodes preconfigured for each network but I strongly advice to setup your own node.

Install

The newest release can always be found here.

Linux

aur

$ yay -S deadshot-bin

apt

Linux distributions like debian or ubuntu can use apt to install the binary

echo 'deb [trusted=yes] https://apt.fury.io/jon4hz/ /' | sudo tee /etc/apt/sources.list.d/jon4hz.list
sudo apt update
sudo apt install deadshot

yum

echo '[jon4hz]
name=jon4hz
baseurl=https://yum.fury.io/jon4hz/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/jon4hz.repo
sudo yum install deadshot

deb, rpm and apk packages

Download the .deb, .rpm or .apk package.

deb

# dpkg -i <release_name>.deb

rpm

# rpm -i <release_name>.rpm

apk

# apk add --allow-untrusted <release_name>.apk

manually

  1. Download the archive and unzip it
  2. Open a terminal in the folder with right click -> "Open Terminal"

The bot can be started with ./deadshot

MacOS

manually

  1. Download the archive and unzip it
  2. Open a terminal in the folder with right click -> "Open Terminal"

The bot can be started with ./deadshot

Windows

manually

  1. Download the archive and unzip it
  2. Go to the folder with the program in it
  3. Open a terminal in the folder with right click -> "Open in Windows Terminal"

The command .\deadshot.exe starts the bot.

If you are using Windows 10, start the bot in the Windows Terminal and not Powershell.

Build

Build dependencies

Build

Clone the repository

$ git clone https://github.com/jon4hz/deadshot && cd deadshot

Build the software

$ go build -o deadshot cmd/deadshot/main.go

Disclaimer

This bot can be used to trade cryptocurrencies. I hereby disclaim any liability and will not be held responsible for any potential losses. I wrote this bot while I learned go, so there might be bugs and mistakes in the code.

Acknowledgements

  • ethereum - obviously.
  • charmbracelet - for their charming cli tools / libs
  • goreleaser - from whom I stole some parts of the pipeline
  • many other great developers who made this bot possible