Created
March 24, 2016 19:24
-
-
Save mardlin/6afcc2d785b8df1f73fb to your computer and use it in GitHub Desktop.
works for me :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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