joemccann / robinhood-api

πŸ“ˆ Unofficial node.js client for accessing the APIs called on Robinhood.com.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robinhood API

πŸ“ˆ 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.

Installation

npm i -S @joemccann/robinhood-api

Usage

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.

Tests

npm i -D
npm test

License

MIT

Authors

About

πŸ“ˆ Unofficial node.js client for accessing the APIs called on Robinhood.com.


Languages

Language:JavaScript 100.0%