Giter Club home page Giter Club logo

robinhood-trader's Introduction

Setup

Setup a .env file


# Required
[email protected]
ROBINHOOD_PASSWORD=password

# Parameters for the mover.js strategy
TESTING=true
SELL_AT_GAIN_PERCENT=1.0
SELL_AT_LOSS_PERCENT=-1.5
SELL_AT_LOSS_COUNT=1  # Determines how many times a stock price needs to be below SELL_AT_LOSS_PERCENT before stock is sold
INVESTMENT_AMOUNT_USD=1000

# Optional for pushover notifications
PUSHOVER_USER=xxx
PUSHOVER_TOKEN=yyy

Once the .env file is configured, proceed...

npm install
node index.js

Alternatively just supply the environment variables on the command line:

[email protected] ROBINHOOD_PASSWORD=yourpassword SELL_AT_GAIN_PERCENT=1.0 node index.js

Docker Setup

Build Docker Container

docker build . -t robinhoodtrader

Run Docker Container

docker run --env-file [path_to_local_env_file] robinhoodtrader node index.js

Strategies

Warning: This is a Work In Progress, use at your own risk

  1. mover.js - Play the early morning jump on the best performing stock on the S&P500 from yesterday.
  2. earnings.js - Play the excitement on the best estimate vs. actual eps on a stocks earnings release today.

robinhood-trader's People

Contributors

thisiskj avatar chriscpoirier avatar jamesmosier avatar godzilla74 avatar

Watchers

James Cloos avatar Chuck Kissinger 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.