@icgio/icg-exchanges-wrapper 1.9.103 → 1.9.105
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 -4
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -434,7 +434,7 @@ module.exports = class Orders {
|
|
|
434
434
|
order_info.order_type + ' order-f-filled-1'
|
|
435
435
|
)
|
|
436
436
|
setTimeout(() => {
|
|
437
|
-
this.delete_order_info(exchange, pair, order_info.type, order_info.order_id,
|
|
437
|
+
this.delete_order_info(exchange, pair, order_info.type, order_info.order_id, order_info.order_type + ' order-f-filled-1')
|
|
438
438
|
}, this.delete_finished_orders_timeout)
|
|
439
439
|
} else if (
|
|
440
440
|
_.includes(['N-FILLED', 'P-FILLED'], order_info.status) &&
|
|
@@ -1003,15 +1003,14 @@ module.exports = class Orders {
|
|
|
1003
1003
|
if (_.get(this.rates, [exchange, pair, 'asks'], []).length > 0 && _.get(this.rates, [exchange, pair, 'bids'], []).length > 0) {
|
|
1004
1004
|
let rates = JSON.parse(JSON.stringify(this.rates[exchange][pair]))
|
|
1005
1005
|
|
|
1006
|
-
let major_rates_only_exchanges_length = this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length
|
|
1007
1006
|
if (this.major_exchanges[pair] && _.includes(this.major_exchanges[pair], exchange)) {
|
|
1008
1007
|
orderbook_major_temp[exchange] = rates
|
|
1009
|
-
if (_.keys(orderbook_major_temp).length ===
|
|
1008
|
+
if (_.keys(orderbook_major_temp).length === this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length) {
|
|
1010
1009
|
orderbook_major = orderbook_major_temp
|
|
1011
1010
|
}
|
|
1012
1011
|
} else if (this.rates_only_exchanges[pair] && _.includes(this.rates_only_exchanges[pair], exchange)) {
|
|
1013
1012
|
orderbook_major_temp[exchange] = rates
|
|
1014
|
-
if (_.keys(orderbook_major_temp).length ===
|
|
1013
|
+
if (_.keys(orderbook_major_temp).length === this.major_exchanges[pair].length + this.rates_only_exchanges[pair].length) {
|
|
1015
1014
|
orderbook_major = orderbook_major_temp
|
|
1016
1015
|
}
|
|
1017
1016
|
}
|