yura505 / robinbot

Robinhood API based swing trading bot
132 stars 34 forks source link

Authentication error #18

Closed Nick8197 closed 5 years ago

Nick8197 commented 5 years ago

I am getting an authentication error check conf.js I have already double checked and it was working before today. Please advise

cfarthingale commented 5 years ago

I can confirm having this same issue this morning as well.

/robinbot/robinbot.js *** ROBINBOT (paper mode) today: 2018-09-12 07:32:40 Robinhood: authentication failed. Please check your credentials in conf.js

yura505 commented 5 years ago

Bad news. I confirm that RH something changed in authentication :( Will look for solution. If anybody can help, I will appreciate it.

Nick8197 commented 5 years ago

I opened an issue in the robinhood github hopefully someone finds the solution and you can fix it.

cfarthingale commented 5 years ago

Thank you Yury for your prompt response. We appreciate very much any effort you make in resolving this issue.

jfors26 commented 5 years ago

I apologize, I thought I was posting in Robinhood GitHub, but I'll leave this here incase it is of any benefit for this page as well

I switched to using 'https://api.robinhood.com/oauth2/token/' with form requirements { grant_type: 'password', scope: 'internal', username: (your_username), password: (your_password), client_id: 'c82SH0WZOsabOXGP2sxqcj34FxkvfnWRZBKlBjFS' (for some reason the id is the same for everyone, at least for now) }

This will return 'access_token'.

All other headers requiring authorization when using the api will also need to be changed from 'Token' to 'Bearer' and then the access_token.

Nick8197 commented 5 years ago

Thanks Jfors how can modify now to work with robinbot?

jfors26 commented 5 years ago

Unfortunately I'm not familiar with robinbot, I came looking here to see if there were any fixes for Robinhood GitHub and posted my findings here instead once I found a fix. I'll take a look through robinbot and see if the fix can be used.

yura505 commented 5 years ago

@jfors26 If you able to update https://github.com/yura505/robinhood-node with new solution, robinbot will work.

Nick8197 commented 5 years ago

https://github.com/Jamonek/Robinhood/issues/135

Looks like a fix. Someone will need to update via pull request I’m guessing

cfarthingale commented 5 years ago

Any new information on this issue?

Nick8197 commented 5 years ago

It’s been fixed yurt needs to update the node

yura505 commented 5 years ago

It’s been fixed yurt needs to update the node

Will update today

Nick8197 commented 5 years ago

Thanks Yury!

yura505 commented 5 years ago

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