-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2_fundamentals.js
More file actions
24 lines (24 loc) · 1.18 KB
/
test2_fundamentals.js
File metadata and controls
24 lines (24 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var credentials = require('./credentials.js');
var Robinhood = require('robinhood')(credentials, function(){
Robinhood.fundamentals("SBPH", function(error, response, body){
if(error){
console.error(error);
}else{
console.log(body);
//{ // Example for SBPH
// average_volume: string, // "14381.0215"
// description: string, // "Spring Bank Pharmaceuticals, Inc. [...]"
// dividend_yield: string, // "0.0000"
// high: string, // "12.5300"
// high_52_weeks: string, // "13.2500"
// instrument: string, // "https://api.robinhood.com/instruments/42e07e3a-ca7a-4abc-8c23-de49cb657c62/"
// low: string, // "11.8000"
// low_52_weeks: string, // "7.6160"
// market_cap: string, // "94799500.0000"
// open: string, // "12.5300"
// pe_ratio: string, // null (price/earnings ratio)
// volume: string // "4119.0000"
//}
}
})
});