From 171f8c7aaef3f18c4f47cc3ffee992f1c0d6fd00 Mon Sep 17 00:00:00 2001 From: Cris Mihalache Date: Wed, 29 Aug 2018 19:37:20 +0300 Subject: [PATCH 1/3] (release) update CHANGELOG, bump manifest to 2.0.0 --- CHANGELOG | 26 ++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index ddee065e..322de09e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,29 @@ +2.0.0 + +- added CLI commands (971e8bf) +- added TradingTicker model (1099273) +- added model class transform support to RESTv2 (1099273) +- added ability to unserialize objects in Model.unserialize() (b23a576) +- added ledgers & movements examples (176d5a9) +- filled in FundingInfo model (268ecc9) +- updated MarginInfo model indices (268ecc9) +- increased max WSv2 listener limit to 1k (5ade818) +- REST API v2: fix calc balances API path (5e2f834) +- WS API v2: added notifyUI helper to generate broadcasts (22cb5bc) +- WS API v2: added support for DMS flag in auth (11e57b1) +- WS API v2: added socket manager for auto multiplexing (f693bb9) +- WS API v2: fixed error notification seq # tracking (1b1c1f3) +- WS API v2: fixed trades event name resolution w/ seq numbers (46af211) +- REST API v2: added ability to auth via token (07f8756) +- REST API v2: added ability to fetch order history for all symbols (57f8c7b) +- REST API v2: added ability to fetch account trades for all symbols (14b13c1) +- REST API v2: added user info endpoint & associated model (36c0079) +- OrderBook: fixed unserialization for raw books (01b5ce4) +- OrderBook: removal of unknown entries no longer raises an error (7bd5bc2) +- OrderBook: array sort is maintained on update (520a9a0) +- OrderBook: converts exp notation numbers to fixed for checksum (2c8487c) +- and more! + 2.0.0-beta.1 - refactored general model handling (broke out field indexes) (c616696) diff --git a/package.json b/package.json index 854692fa..880e3ff1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bitfinex-api-node", - "version": "2.0.0-beta.1", + "version": "2.0.0", "description": "Node reference library for Bitfinex API", "engines": { "node": ">=7" From 91d8596b12c076e6a5181d26c15bef2f27f7bdaa Mon Sep 17 00:00:00 2001 From: Cris Mihalache Date: Fri, 31 Aug 2018 15:57:11 +0300 Subject: [PATCH 2/3] (feature) bump channel limit to 250 per socket --- lib/ws2_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ws2_manager.js b/lib/ws2_manager.js index 41fb688d..7ce4407d 100644 --- a/lib/ws2_manager.js +++ b/lib/ws2_manager.js @@ -7,7 +7,7 @@ const _includes = require('lodash/includes') const _pick = require('lodash/pick') const WSv2 = require('./transports/ws2') -const DATA_CHANNEL_LIMIT = 50 +const DATA_CHANNEL_LIMIT = 250 /** * Provides a wrapper around the WSv2 class, opening new sockets when a From ee7156fed8727223b207d3736548c35440b1a00d Mon Sep 17 00:00:00 2001 From: Cris Mihalache Date: Fri, 31 Aug 2018 16:04:17 +0300 Subject: [PATCH 3/3] (fix) tests for increased max socket limit --- test/lib/ws2_manager.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/ws2_manager.js b/test/lib/ws2_manager.js index e279bcbe..793866dc 100644 --- a/test/lib/ws2_manager.js +++ b/test/lib/ws2_manager.js @@ -124,8 +124,8 @@ describe('WS2Manager', () => { const m = new WS2Manager() m._sockets[0] = { - ws: { getDataChannelCount: () => 35 }, - pendingSubscriptions: new Array(30), + ws: { getDataChannelCount: () => 200 }, + pendingSubscriptions: new Array(70), pendingUnsubscriptions: new Array(10) } @@ -295,7 +295,7 @@ describe('WS2Manager', () => { pendingSubscriptions: [], pendingUnsubscriptions: [], ws: { - getDataChannelCount: () => 55 + getDataChannelCount: () => 255 } }