Giter Club home page Giter Club logo

stock_reminder_bot's Introduction

stock_reminder bot ๐Ÿค–

Build Status codecov

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:

bot_mention

The bot will then get back to you on the specified date with your investment results:

bot_mention

bot_mention

Implementation ๐Ÿ› ๏ธ

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.

Usage

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

stock_reminder_bot's People

Contributors

luisgc93 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.