yura505 / robinbot

Robinhood API based swing trading bot
134 stars 35 forks source link

Unable to Log in using credentials, any known issues with that? #20

Open josephtutera opened 6 years ago

josephtutera commented 6 years ago

Is this quandl_token variable where the API key is supposed to go?

I have tired a valid username and password for Robinhood.com, but API login does not work when I attempt the following.

Where does the API key go exactly? Is this it?

// obtain token from www.quandl.com (free), need for market analysis
c.quandl_token = "api_key_here";

// Robinhood credentialss
c.robinhood_credentials = {
    username:'someUsername',
    password:'somePassword'
};
Nick8197 commented 6 years ago

You sign up for quandary and put in the long API number where it says api key here and keep the number in the parenthesis

josephtutera commented 6 years ago

Still nothing, if you mean bu parenthesis for the API key you mean this:

' // obtain token from www.quandl.com (free), need for market analysis c.quandl_token = "(api_key_here)"; '

Nick8197 commented 6 years ago

Sorry meant quotes not parenthesis c.quandl_token = “put api key here” put the number between the quotes

josephtutera commented 6 years ago

Still, authentication fail, do I need a credentials.js. is this ready to run after I install dependencies and run it. In other words, do I need to install anything else?

Nick8197 commented 6 years ago

Do a clean install follow the read me

Please run "npm update" and "npm install" to update robinhood-node

then go to your conf.js put in your Robinhood username and password, and also put in your quandl api key it should work

josephtutera commented 6 years ago

ok, thanks I will let you know what happens

josephtutera commented 6 years ago

it worked! NPM-update was the key, appreciate the help!

riscphree commented 6 years ago

I'm getting this error on my end and npm update doesn't seem to solve it:

$ npm update
npm WARN robinbot@0.0.1 No repository field.

+ robinhood@1.1.2
updated 1 package and audited 144 packages in 2.734s
found 17 vulnerabilities (3 low, 9 moderate, 4 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

$ npm audit fix
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but npm-shrinkwrap.json was generated for lockfileVersion@0. I'll try to do my best with it!
npm WARN robinbot@0.0.1 No repository field.

added 18 packages from 14 contributors, removed 18 packages and moved 1 package in 1.852s
fixed 0 of 17 vulnerabilities in 144 scanned packages
  17 vulnerabilities required manual review and could not be updated

This is a clean install of the code. Any hints?

Edit: I had to update some random stuff and it seemed to work now.