UNPKG
btce-api
Version:
latest (2.1.3)
2.1.3
2.1.2
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
Node.js client for the btc-e API
github.com/lienbcn/btce-api
btce-api
/
test-btce.js
13 lines
(12 loc)
•
243 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
btceApi =
require
(
'btce-api'
);
var
oPair = {
key
:
''
,
secret
:
''
}; btceApi.
setKeys
(oPair); btceApi.
getInfo
(
function
(
oInfo
){
console
.
dir
(oInfo); }); btceApi.
getTicker
(
'ltc_usd'
,
function
(
oTicker
){
console
.
dir
(oTicker); });