Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Margin (Gold) buying power for penny stocks. #59

Open
mattspaulding opened this issue Oct 12, 2017 · 0 comments
Open

Margin (Gold) buying power for penny stocks. #59

mattspaulding opened this issue Oct 12, 2017 · 0 comments

Comments

@mattspaulding
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant