UNPKG
btcbox
Version:
latest (0.0.10)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
btcbox trade api for promise
you21979/node-btcbox
btcbox
/
example
/
private.js
10 lines
(7 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
btcbox =
require
(
'..'
);
var
key =
''
;
var
secret =
''
;
var
api = btcbox.
createPrivateApi
(key,secret,
''
); api.
balance
().
delay
(
1000
).
then
(
console
.
log
).
then
(
function
(
){
return
api.
wallet
(
'btc'
).
then
(
console
.
log
); })