cryptodip-bot
A bot that attempts to buy cryptocurrency on the dip.
1.1K
This bot is designed to buy cryptocurrency on Coinbase Pro or Gemini using a USD prefunded portfolio whenever it detects a significant dip in price.
I run this bot full time against my own personal Coinbase Pro and Gemini accounts, however I make no warranties that
the bot will function. It could crash and miss a dip, or it could detect and buy a dip before the floor. So far
it has done well for me, but your mileage may vary.
As with any open source code: USE THIS BOT AT YOUR OWN RISK!
The bot checks the price in a configurable cycle. Each cycle the bot will check the price of the specified cryptocurrency. It will then compare the average price of the previous 7 days worth of price history to the configured dip percentage. If the current price is the configured percentage lower than the price average it will buy the cryptocurrency in the specified amount of USD.
To run the bot you will need Docker and docker-compose installed on your computer.
docker-compose up -d
If you specify Gemini credentials at all in the config.json file then the bot will use Gemini even if Coinbase Pro
credentials are also specified.
You will need the following:
The following sections are optional.
These settings should be in a configuration file named config.json and placed in ./config.
Additionally, you can override the volume mount to a new path if you prefer.
The file should look like this:
{
"bot": {
"currency": "ETH",
"buy_amount": 75.00,
"dip_percentage": 10,
"average_period_days": 3,
"cool_down_period_days": 5,
"cycle_time_minutes": 15,
"name": "Test-Bot"
},
"coinbase": {
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
"passphrase": "YOUR_API_PASSPHRASE"
},
"gemini": {
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
},
"aws": {
"access_key": "YOUR_API_KEY",
"secret_access_key": "YOUR_API_SECRET",
"sns_arn": "arn:aws:sns:us-east-1:012345678901:dip_alerts"
}
}
You can run the bot outside of Docker pretty easily.
python SourceCode/cryptodip-bot.py -c /path/to/config.json
The bot will log activity to stdout, so you can review it with docker logs
Any and all donations are greatly appreciated.
I have GitHub Sponsors configured however I happily prefer cryptocurrency:
ETH/ERC20s: ahrenstein.eth (0x288f3d3df1c719176f0f6e5549c2a3928d27d1c1)
BTC: 3HrVPPwTmPG8LKBt84jbQrVjeqDbM1KyEb
Content type
Image
Digest
sha256:e8224fc1f…
Size
445.1 MB
Last updated
10 months ago
docker pull ahrenstein/cryptodip-bot