@ex-master/core
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -68,2 +68,3 @@ /// <reference types="node" /> | ||
private _destroyed; | ||
private _markets; | ||
private balanceMap; | ||
@@ -70,0 +71,0 @@ private symbolToMarketDataMap; |
@@ -17,2 +17,3 @@ "use strict"; | ||
this._destroyed = false; | ||
this._markets = []; | ||
this.balanceMap = new Map(); | ||
@@ -76,6 +77,9 @@ this.dashboard = dashboard; | ||
this.symbolToMarketDataMap = new Map(); | ||
let markets = []; | ||
for (let item of marketDataItems) { | ||
let symbol = getMarketSymbol(item.market); | ||
this.symbolToMarketDataMap.set(symbol, item); | ||
markets.push(item.market); | ||
} | ||
this._markets = markets; | ||
}); | ||
@@ -82,0 +86,0 @@ } |
{ | ||
"name": "@ex-master/core", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"main": "bld/library/index.js", | ||
@@ -25,3 +25,3 @@ "types": "bld/library/index.d.ts", | ||
}, | ||
"gitHead": "ad2ebcc962f990af73526e6f8a2766b4d1ab2501" | ||
"gitHead": "40db0078db1373a81ef66fa8b91cb60d69a3b699" | ||
} |
@@ -98,2 +98,3 @@ import {EventEmitter} from 'events'; | ||
private _markets: Market[] = []; | ||
private balanceMap = new Map<string, Balance>(); | ||
@@ -235,2 +236,4 @@ private symbolToMarketDataMap!: Map<string, SpotMarketData>; | ||
let markets: Market[] = []; | ||
for (let item of marketDataItems) { | ||
@@ -240,3 +243,7 @@ let symbol = getMarketSymbol(item.market); | ||
this.symbolToMarketDataMap.set(symbol, item); | ||
markets.push(item.market); | ||
} | ||
this._markets = markets; | ||
} | ||
@@ -243,0 +250,0 @@ |
Sorry, the diff of this file is not supported yet
35753
877