robinhood-node
robinhood-node copied to clipboard
Margin (Gold) buying power for penny stocks.
Code being executed:
var Robinhood = require('robinhood')(credentials, function(){
Robinhood.accounts(function(err, response, body){
if(err){
console.error(err);
}else{
console.log("accounts");
// This returns the margin buying power
console.log(body.results[0].margin_balances.unallocated_margin_cash);
}
})
});
Expected result
// Buying power for a specific stock
Actual behaviour
// The full buying power
Reproducing
// I know the account will always return the full margin buying power, but how do I get the margin buying power for a particular stock? Namely, penny stocks.