@icgio/icg-exchanges-wrapper 1.19.1 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/middleware/orders.js +3 -2
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -223,7 +223,8 @@ module.exports = class Orders {
|
|
|
223
223
|
}
|
|
224
224
|
for (let exchange in this.exchange_cur_quote_cur_rates_only) {
|
|
225
225
|
const exchange_base = utils.exchange_base_from_key(exchange)
|
|
226
|
-
|
|
226
|
+
const ro_cd = (cd && cd[exchange]) || {}
|
|
227
|
+
this.ExchangesRatesOnly[exchange] = new ICGExchanges[_.upperFirst(exchange_base)]('', '', _.assign({}, STANDARD_LIMITS, ro_cd))
|
|
227
228
|
}
|
|
228
229
|
this.balances = {}
|
|
229
230
|
this.positions = {}
|
|
@@ -1575,7 +1576,7 @@ module.exports = class Orders {
|
|
|
1575
1576
|
this.ws_market_first_time = {}
|
|
1576
1577
|
}
|
|
1577
1578
|
for (let exchange in exchange_pairs) {
|
|
1578
|
-
if (Exchanges[exchange].ws_market
|
|
1579
|
+
if (Exchanges[exchange].ws_market) {
|
|
1579
1580
|
if (!this.ws_market_first_time[exchange]) {
|
|
1580
1581
|
Exchanges[exchange].ws_market(exchange_pairs[exchange], this.ws_market_options)
|
|
1581
1582
|
this.ws_market_first_time[exchange] = true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@icgio/icg-exchanges": "^1.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.44.0",
|
|
21
21
|
"@icgio/icg-utils": "^1.9.61",
|
|
22
22
|
"lodash": "^4.17.23",
|
|
23
23
|
"pg": "^8.17.2"
|