LimitSwap
LimitSwap is a trading bot for UniSwap & Many Other DEXs. It has the ability to scan multiple pairs on uniswap and grab the price in realtime and make automated trading decisions based on the users settings [AKA: Limit Orders]
This bot was built as a learning project for me to learn how to use Web.py, Erc20, & improve my coding skills please use at your own risk! I have open sourced this project and am now longer pushing updates to this repo, there is a new version being maintained by a community memeber @tsarbuig in the telegram
Β Β
HOW TO INSTALL LimitSwap
There are 3 ways to install LimitSwap :
Β Β
1. Run The Python Code Locally [this is most ideal and can work on any OS]
Here is a tutorial step-by-step:
- Download last LimitSwap code on the "Code" page https://github.com/CryptoGnome/LimitSwap by clicking on Code > Download Zip :
- Unzip file
- Install Python on your computer : https://www.python.org/downloads/
PLEASE ADD IT TO PATH BY CHECKING THIS OPTION:
- Install Visual Studio : https://visualstudio.microsoft.com/fr/thank-you-downloading-visual-studio/?sku=Community&rel=17
Please install the default package and all those options :
-
Open Windows Powershell (or Mac Terminal on MacOs)
-
Run this command to locate LimitSwap folder :
Get-ChildItem -Filter LimitSwap.py -Recurse -ErrorAction SilentlyContinue -Force
- It should look like this:
- Copy the Directory
(on my computer it's : C:\Users\Administrator\Desktop\LimitSwap-master
but adapt it to your own result obtained above !!)
- Paste the Directory after the "cd" command to navigate through the bot folder
(on my computer it's : cd C:\Users\Administrator\Desktop\LimitSwap-master
but adapt it to your own result obtained above !!)
- Run command:
pip install -r requirements.txt
--> this will install all the packages needed to run LimitSwap
Β
Β
- Simply double-click on "LimitSwap.py" and it will run, since you've installed Python
π π
Β
Pros and cons
Β Β
2. Download the pre-compiled package [This can lag behind current version]
That we provide on the Release page : it's a .exe file that you can run on your computer. https://github.com/CryptoGnome/LimitSwap/releases
- Download last Zip file, for instance :
- Unzip it
- Open "tokens.json - Shortcut" and configure it for your needs
- Open "Start LimitSwap.cmd" --> it will configure your settings.json
Β
Pros and cons
Β Β
3. With Docker
Requirements
MacOS and Windows users require Docker for Desktop https://www.docker.com/products/docker-desktop
Ubuntu Linux require Docker installed sudo apt-get install docker.io
Usage
Navigate into the bot directory and build the Docker image by executing the following command:
docker build -t limit_swap_v4 .
(For MacOS and Linux) Still within the main directory you can run Docker via:
docker run --rm --name limit-swap_v4 -it -v $(pwd)/settings.json:/app/settings.json -v $(pwd)/tokens.json:/app/tokens.json limit_swap_v4
(For Windows with Powershell)
docker run --rm --name limit-swap_v4 -it -v $PWD/settings.json:/app/settings.json -v $PWD/tokens.json:/app/tokens.json limit_swap_v4
If you wish to run the container in the background please include -d for detached.
The streaming container logs can be visualised with docker logs -f limit_swap_v4
To stop the bot docker stop limit_swap_v4
Pros and cons
Β
Β
Β
π§
Developers Want to help contribute to LimitSwap, reach out on telegram all you need to do is make changes or fix bugs and we will pay developer bounties in $LIMIT for helping make the bot batter!
Links & Socials
WiKi
https://limitswapv3.gitbook.io/limitswap/