https://github.com/danielwpz/node-robinhood
JS lib to crawl robinhood statistics data
https://github.com/danielwpz/node-robinhood
Last synced: 9 months ago
JSON representation
JS lib to crawl robinhood statistics data
- Host: GitHub
- URL: https://github.com/danielwpz/node-robinhood
- Owner: danielwpz
- License: mit
- Created: 2018-04-19T02:49:56.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-25T23:04:07.000Z (about 8 years ago)
- Last Synced: 2025-09-24T04:58:02.065Z (9 months ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-robinhood
This is a javascript lib helps you to grab public data from robinhood.
Based on https://github.com/sanko/Robinhood
## Install
`npm install --save node-robinhood`
## Test
`npm test`
## Example
```
const robinhood = require('node-robinhood');
robinhood.instrument.getInstrumentBySymbol('FB')
.then(console.log);
robinhood.quote.getQuoteBySymbol('BAC')
.then(console.log);
```
## API
*NOTE: `id` means a single instrument ID (e.g. `ebab2398-028d-4939-9f1d-13bf38f81c50`),
`symbol` means a single instrument symbol (e.g. `FB`)*
- `instrument`
- `getInstrument(id)`
*return*: An instrument object
- `getInstruments(id_list)`
*`id_list`* List of instrument ids
*return*: List of instrument objects
- `getInstrumentBySymbol(symbol)`
- `midlands`
- `getRatings(id)`
*return*: Ratings object about instrument with id
- `get100MostPopular()`
*return*: A list of instrument ids under the 100 most popular tag
- `quote`
- `getQuoteBySymbol(symbol)`
- `getQuote(id)`
- `popularity`
- `getPopularity(id)`
- `getPopularities(id_list)`
- `historical`
- `getHistoricalBySymbol(symbol_list, interval)`
*`interval`* time interval, could be `week`, `day`...