1.0.0 • Published 8 years ago
node-robinhood v1.0.0
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.getInstrumentBySymbol('FB')
.then(console.log);
robinhood.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)
instrumentgetInstrument(id)
return: An instrument objectgetInstruments(id_list)
id_listList of instrument ids
return: List of instrument objectsgetInstrumentBySymbol(symbol)
midlandsgetRatings(id)
return: Ratings object about instrument with idget100MostPopular()
return: A list of instrument ids under the 100 most popular tag
quotegetQuoteBySymbol(symbol)getQuote(id)
popularitygetPopularity(id)getPopularities(id_list)
historicalgetHistoricalBySymbol(symbol_list, interval)
intervaltime interval, could beweek,day...