Skip to content

joemccann/robinhood-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

51 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published