kryptonite
Automated crypto swapping bot, written in Go. Supports swapping on Ethereum, BSC, Polygon, Optimisim and Arbitrum networks using 1inch AggregatorV4 router. Under active development.
Table of Contents
Introduction
Setup
Requirements
Parameters
The following command line parameters are supported.
Parameter |
Description |
Type |
Default |
--privateKey |
Your wallet private key |
string |
|
--publicKey |
Your wallet public address |
string |
|
--chainId |
Chain to use. Allowed options: 1 (Ethereum), 10 (Optimism), 56 (Binance Smart Chain), 137 (Polygon/Matic), 42161 (Arbitrum) |
integer |
1 |
--stableToken |
Stable token (ERC20) to use. Example: USDC, USDT, DAI |
string |
USDC |
--targetToken |
Target ERC20 token to hold. Example: WETH, WMATIC, LINK. |
string |
WETH |
--redisAddress |
Redis server host. Example: 192.168.1.100:6379 |
string |
|
--botToken |
Telegram bot token used to send and receive transaction confirmations |
string |
|
--chatId |
Your telegram chat id. You will receive this when you authorize yourself with the bot for the first time. |
string |
|
--password |
Password to share with the bot to authorize yourself as the admin |
string |
kryptonite |
--days |
No. of days to use to calculate moving average |
integer |
30 |
--profitPercent |
Profit percent at which the bot will execute a sell order |
integer |
50 |
--stopLossPercent |
Loss percent at which the bot will execute a stop loss order |
integer |
25 |
Usage
docker run pravinba9495/kryptonite:latest kryptonite \
--privateKey=<PRIVATE_KEY> \
--publicKey=<PUBLIC_ADDRESS> \
--chainId=<CHAIN_ID> \
--stableToken=<STABLE_TOKEN> \
--targetToken=<TARGET_TOKEN> \
--redisAddress=<REDIS_ADDRESS> \
--botToken=<BOT_TOKEN> \
--chatId=<CHAT_ID> \
--password=<PASSWORD> \
--days=<DAYS> \
--profitPercent=<PROFIT_PERCENT> \
--stopLossPercent=<STOP_LOSS_PERCENT>
Documentation
Kryptonite documentation is hosted at Read the docs.
Development
Kryptonite is still under development. Contributions are always welcome!
Maintainers
License
MIT