A twitter bot that registers reminders for stock and cryptocurrency prices. Mention the bot with a cashtag followed by a stock or cryptocurrency ticker symbol and the reminder date:
The bot will then get back to you on the specified date with your investment results:
The bot uses RomelTorres' python wrapper for the Alpha Vantage API. It's deployed on Heroku with Docker ๐ณ and uses two separate clock processes for replying to twitter mentions and posting reminders. When a mention is in the correct format, a reminder object is saved into a postgres database through peewee's ORM. Every day at midday UTC, the bot will check whether any reminders are due and publish an update by replying to the initial tweet with the investment results. Further implementation details can be found in the project's medium post.
Register an account on Twitter's Developer Platform and store your credentials in /envfiles/local.env
.
To run the bot locally, start the project containers with make env-start
and then try out the bot's features with:
make reply-mentions
To run all the tests use:
make test