Skip to content

Instantly share code, notes, and snippets.

@mardlin
Created March 24, 2016 19:24
Show Gist options
  • Save mardlin/6afcc2d785b8df1f73fb to your computer and use it in GitHub Desktop.
Save mardlin/6afcc2d785b8df1f73fb to your computer and use it in GitHub Desktop.
works for me :)
var Client = require('./coinbase-node').Client;
var client = new Client({
'apiKey': 'bTSRsOipbMgBfYb6',
'apiSecret': 'lzAsP0prLfpGruFBbJPZM1XtBZiD9R5D',
'baseApiUri': 'https://api.sandbox.coinbase.com/v2/',
});
client.getAccounts({}, function(err, accounts) {
accounts.forEach(function(acct) {
console.log('balancen: ' + acct.balance.amount + ' for ' + acct.name);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment