📈 Unofficial node.js client for accessing the APIs called on Robinhood.com.
NOTE: THIS IS A WORK IN PROGRESS AND NOT RECOMMENDED FOR ANY USAGE BEYOND TINKERING.
npm i -S @joemccann/robinhood-api
Create a .env
with the following:
U=XXX
PASS=YYY
QR=ZZZ # From 2FA from Robinhood
CLIENT_ID=c82SH0WZOsabOXGP2sxqcj34FxkvfnWRZBKlBjFS # From Robinhood
RH_API_VERSION=1.403.0 # Optional, defaults to 1.315.0
const { login } = require('@joemccann/robinhood-api')
try {
const { data, statusCode } = await login()
console.dir(data)
console.log(statusCode) // 200
} catch (e) {
console.error(e)
}
For more information on the requests and responses view the test file.
npm i -D
npm test
MIT