A bot that buys and sells ETH based on tweets from certain Bankless folks.
1.2K
This bot is designed to buy ETH on Coinbase Pro every time one of the following Twitter accounts calls ETH "Ultra Sound Money" (Note: I will update the documentation and docker container whenever the meme changes)
Bot rules:
The initial inspiration for this bot came from the Bankless community's massive faith in Ethereum and my desire to practice some Python
To run the bot you will need Docker and docker-compose installed on your computer.
docker-compose up -d
You will need the following credentials:
These credentials should be in a configuration file named credentials.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:
{
"twitter": {
"consumer_key": "YOUR_CONSUMER_KEY",
"consumer_secret": "YOUR_CONSUMER_SECRET",
"access_key": "YOUR_ACCESS_KEY",
"access_secret": "YOUR_ACCESS_SECRET"
},
"coinbase": {
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
"passphrase": "YOUR_API_PASSPHRASE"
}
}
You can override a few parameters by changing the Docker CMD. The included docker-compose.yml file has an example that overrides the trigger phrase, price, and crypto currency used.
An example of doing this outside of Docker:
python SourceCode/bankless-bot.py -c /path/to/credentionals.json -t "Tesla now accepts bitcoin", --price 150.00 --currency BTC
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
A special thanks to Bankless for the informative newsletter and wonderfully helpful community.
Content type
Image
Digest
Size
367.5 MB
Last updated
almost 5 years ago
docker pull ahrenstein/bankless-bot