From 7bcfacde6747752e905af22b8e33cbaf96bfb615 Mon Sep 17 00:00:00 2001 From: Amin Marashi Date: Tue, 7 Jun 2016 09:50:50 +0800 Subject: [PATCH] Updated README: How API is used in node --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f4ae86..cc03be9 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Require the library and then pass it to LiveApi's constructor. var ws = require('ws'); var LiveApi = require('binary-live-api').LiveApi; -var api = new LiveApi(ws); +var api = new LiveApi({ websocket: ws }); api.authorize('yourtoken'); api.getPortfolio(); api.events.on('portfolio', function(data) {