Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "binance", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "node.js wrapper for the Binance REST and WebSocket APIs", | ||
@@ -5,0 +5,0 @@ "main": "./lib/binance.js", |
@@ -21,3 +21,3 @@ # Binance | ||
binanceRest.allOrders({ | ||
symbole: 'BNBBTC' // Object is transformed into a query string, timestamp is automatically added | ||
symbol: 'BNBBTC' // Object is transformed into a query string, timestamp is automatically added | ||
}) | ||
@@ -44,3 +44,3 @@ .then((data) => { | ||
// WebSocket API | ||
const binanceWS = api.BinanceWS(); | ||
const binanceWS = new api.BinanceWS(); | ||
@@ -52,3 +52,3 @@ binanceWS.onDepthUpdate('BNBBTC', (data) => { | ||
/* | ||
* onUserData requires an instance of binanceRest in order to make the necessary startUserDataStream and | ||
* onUserData requires an instance of BinanceRest in order to make the necessary startUserDataStream and | ||
* keepAliveUserDataStream calls | ||
@@ -58,3 +58,3 @@ */ | ||
console.log(data); | ||
}, 60000); // How often the keep alive should be sent in milliseconds | ||
}, 60000); // Optional, how often the keep alive should be sent in milliseconds | ||
@@ -61,0 +61,0 @@ binanceWS.onKline('BNBBTC', '1m', (data) => { |
44419
11
467