robinhood-node icon indicating copy to clipboard operation
robinhood-node copied to clipboard

Margin (Gold) buying power for penny stocks.

Open mattspaulding opened this issue 7 years ago • 0 comments

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.

mattspaulding avatar Oct 12 '17 21:10 mattspaulding