Giter VIP home page Giter VIP logo

gmail-automation's Introduction

How to make an API endpoint to extract Trade Confirmations through Robinhood emails.

This repository serves as an example on how to use the gmail API with Python.

NOTE: I made a Robinhood API example, why? Robinhood does not offer an official API and offers no developer support, we are forced to live with that? Robinhood is also raising commission fees, making their platform less ideal. I made this as a statement.

On the bright side, other methods such as headleass browsers have been used for the past decade to get around these un-developer-friendly plots, and many useful unofficial APIs were made avaiable thanks to that.

In order to run this code, you need to have a gmail account to receive the emails from [email protected]. I would recommend setting up automatic email forwarding, and I will show you an example how. Let's get started.

Step-by-Step Instructions:

  1. Set up Gmail forwarding.
    • In Gmail, set up filter messages from "[email protected]"
    • Forward to annother new email (For Increased Security)
      • You can also choose: archive, label, etc. (you won't necessary need to read them in this email anymore)
  2. Sign in to the new email account.
    • See the Robinhood emails
  3. Follow the Gmail API instructions to receive file credentials.json
  4. Run Python Script to RETURN Trade confirmations from the emails.
    • (bonus feature for you to make:) Deploy it as a cloud service in the background to be triggered when you get a new gmail.

Features:

  • nlp regular expressions extract -- an implementation using a trained model such as SpaCy to read email text and extract the stock tickers from its syntax.
  • potential for automatic forwarding -- set up a table with webhooks, and send requests to table using CRON jobs or when a new email is received.

P.S. be careful with your private keys suchs as credential.json and tokens.json, make sure they don't get uploaded to github by accident ;) happy coding!

gmail-automation's People

Contributors

ginomcfino avatar

Watchers

 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.