Since the transaction fee's are huge on ethereum at the moment, check out my pancakeswap trading client: https://github.com/aviddot/Pancakeswap-trading-bot
- An ethereum address
- An infura project with link (www.infura.io)
- A Windows machine
- Not sure whether needed anymore: Visual C++ build tools (www.visualstudio.microsoft.com/visual-cpp-build-tools/)
-
Read prerequisites
-
Download the latest release or download "configfile.py" and "UNISWAP_bot.exe" from the repository.
-
Open "configfile.py" (with notepad for instance) and add your ethereum address and personal key at the bottom of the file between the quotation marks('').
... my_address = '' my_pk = ''
- Run "bot.exe"
- Make sure configfile.py and bot.exe are in the same folder.
-
Edit settings according to choice.
-
Add infura project url
Main coin/token: The token or coin you want to trade tokens for and with
Buy/Sell boundary: The amount of balance (calculated in
Token ETH address: Fill the token eth address you want to trade (such as 0x0000000000000000000000000000000000000000)
Sell($): The price you want the trader to sell the token for (0.01 = 1 dollar cent)
Buy($): The price you want the trader to buy the token for (0.01 = 1 dollar cent)
Activate and Trade with ETH: Toggle if you want to activate trading with your main-coin/token
Trade with ERC (Experimental!): Toggle if you want to trade the token with other ERC tokens of which this option is activated (see tokentokennumerator)
Stoploss: Toggle to activate stoploss (0.01 = 1 dollar cent)
Second(s) between checking price: Standard is 4 seconds. With a infura server with max 100.000tx/day 4 seconds is good for 2 activated token 24hr/day
Seconds waiting between trades: depends on how fast transactions finalize Max slippage: The maximum slippage you want to allow while trading (0.03 = 3%) $ to keep in ETH after trade: The amount of ETH/main token you want to keep after each trade (excluding transaction fees) in terms of $. GWEI option: The amount of gas you want to use for each trade (see ethgasstation.info) Under construction: use fast Update names: Press to update tokens names according to the Token address
Max GWEI: Set a limit to how much GWEI you want to use. If the chosen gas strategie gives a higher GWEI than the limit, the transaction wont be made.
Different deposit address: Use this if you want the swap output to go to a different ethereum address (without extra fees).
Tokentokennumerator (Experimental!): This value lets you trade ERC tokens with each other. The code to create the value is as followed:
if pricetoken1usd > ((token1high + token1low) / 2) and pricetoken2usd < ((token2high + token2low) / 2): token1totoken2 = ((pricetoken1usd - token1low) / (token1high - token1low)) / ((pricetoken2usd - token2low) / (token2high - token2low))
If you dont want to wait till the token1 is sold for the maincoinoption, because you are uncertain whether token2 will still be at this price level or think that token1 will drop, you can use this function. To use this function, "Trade with ERC" should be activated for at least 2 tokens, and the highs and lows should be set seriously.
As an example, if the current price of token1 is $0.9 and its set "high"=$1 and "low"=$0, the value of this token is seen as "90%". Token2 also has a high of
- Bot actually works now Since version 1.1
- Several bug fixes that were found after testing all feature
- Added current balances in $. The bot now tells you how much balance your account has.
- Added buy-sell boundary. This value tells the bot how much ETH (or token such as USDT) is needed to be on the address to see the last action as a sell.
- ...
- Repacked into an executable due to edited modules and questions about python usage
- Fixed problems regarding threading, the trader works much faster now
- Further updates in custom gas strategies
- Added the option to apply the maximum amount of GWEI you want to use
- Added the option to send the swap output straight to a different address, without extra fees
- Using wBTC or eth as token is not possible, but it is possible to use them as main-coin/token
- Sloppy dinamic design of GUI
- Sometimes lag when updating names or when starting the bot (0-10 seconds)
- More: Let me know!
- New, more user-friendly design
(Depends on whether the application is used)
If you have any questions you can contact me via telegram: aviddot
Donations: 0x6B1CeA1c27Bbb1428978dC3C0423642fDa404367