Skip to content

Commit

Permalink
Merge branch 'CryptoGnome:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
yaqub0r authored Dec 10, 2021
2 parents 462f14b + 67d6d05 commit 449a17b
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 5 deletions.
35 changes: 35 additions & 0 deletions LimitSwap.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,41 @@ def load_tokens_file(tokens_path, load_message = True):
base_symbol = "BNB"
rugdocchain = '&chain=bsc'
modified = False

elif settings['EXCHANGE'].lower() == 'biswap':
if settings['USECUSTOMNODE'].lower() == 'true':
my_provider = settings['CUSTOMNODE']
print(timestamp(), 'Using custom node.')
else:
my_provider = "https://bsc-dataseed4.defibit.io"

if not my_provider:
print(timestamp(), 'Custom node empty. Exiting')
exit(1)

if my_provider[0].lower() == 'h':
print(timestamp(), 'Using HTTPProvider')
client = Web3(Web3.HTTPProvider(my_provider))
elif my_provider[0].lower() == 'w':
print(timestamp(), 'Using WebsocketProvider')
client = Web3(Web3.WebsocketProvider(my_provider))
else:
print(timestamp(), 'Using IPCProvider')
client = Web3(Web3.IPCProvider(my_provider))

print(timestamp(), "Binance Smart Chain Connected =", client.isConnected())
print(timestamp(), "Loading PinkSwap Smart Contracts...")

routerAddress = Web3.toChecksumAddress("0x3a6d8cA21D1CF76F653A67577FA0D27453350dD8")
factoryAddress = Web3.toChecksumAddress("0x858E3312ed3A876947EA49d572A7C42DE08af7EE")

routerContract = client.eth.contract(address=routerAddress, abi=routerAbi)
factoryContract = client.eth.contract(address=factoryAddress, abi=factoryAbi)

weth = Web3.toChecksumAddress("0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c")
base_symbol = "BNB"
rugdocchain = '&chain=bsc'
modified = False

elif settings['EXCHANGE'].lower() == 'apeswap':
if settings['USECUSTOMNODE'].lower() == 'true':
Expand Down
54 changes: 49 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,64 @@

# 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!*

#### Grab the Latest Release:
 
 

## Install LimitSwap
There are 2 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 here :
<img src="https://user-images.githubusercontent.com/70858574/145568534-e22c2887-d761-4fba-8dd0-f765b4300a6c.png" width="300">

- Unzip file
- Install Python on your computer : https://www.python.org/downloads/
- 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 :
![image](https://user-images.githubusercontent.com/70858574/145580447-bd648d6d-c3ce-4dd9-8527-84ecfb5f30cc.png)

- Open **Windows Powershell** (or Mac Terminal on MacOs)
- Navigate into the unzipped folder
- Run command: "**pip install -r requirements.txt**" --> this will install all the packages needed to run LimitSwap

==> And it's done! ✅

Simply **double-click on "LimitSwap.py"** and it will run, since you've installed Python 👍👍

&nbsp;

#### Pros and cons
🟢 : you are sure of the code that is running on your computer

🔴 : little bit complicated

&nbsp;
&nbsp;

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

#### Pros and cons
🟢 : very easy to setup

🔴 : it's pre-compiled, so you cannot check the Source Code


## 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:

## Links & Socials

#### WiKi
https://limitswapv3.gitbook.io/limitswap/
Expand All @@ -25,5 +71,3 @@ https://twitter.com/LimitSwap

#### Telegram:
https://t.me/LimitSwap


0 comments on commit 449a17b

Please sign in to comment.