@icgio/icg-exchanges-wrapper 1.14.16 → 1.14.18
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 -3
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -476,7 +476,7 @@ module.exports = class Orders {
|
|
|
476
476
|
trades[exchange][pair].trades.map((trade) => {
|
|
477
477
|
if (_.get(this.order_info, [exchange, pair, trade.type, trade.order_id])) {
|
|
478
478
|
let order_info = this.order_info[exchange][pair][trade.type][trade.order_id]
|
|
479
|
-
if (order_info.status === 'CANCELED' || order_info.status === 'CANCELING') {
|
|
479
|
+
if ((order_info.status === 'CANCELED' || order_info.status === 'CANCELING') && trade.amount > order_info.f_amount) {
|
|
480
480
|
let type = trade.type,
|
|
481
481
|
order_id = trade.order_id
|
|
482
482
|
// this.info_log('TRADES: %s ORDER FILLED', order_info.status, trade, order_info)
|
|
@@ -495,10 +495,10 @@ module.exports = class Orders {
|
|
|
495
495
|
close_time: trade.close_time || new Date(),
|
|
496
496
|
fees: trade.fees,
|
|
497
497
|
},
|
|
498
|
-
order_info.order_type + ' canceled-order-filled'
|
|
498
|
+
order_info.order_type + ' canceled-order-filled(more)'
|
|
499
499
|
)
|
|
500
500
|
setTimeout(() => {
|
|
501
|
-
this.delete_order_info(exchange, pair, type, order_id, order_info.order_type + ' canceled-order-filled')
|
|
501
|
+
this.delete_order_info(exchange, pair, type, order_id, order_info.order_type + ' canceled-order-filled(more)')
|
|
502
502
|
}, this.delete_finished_orders_timeout)
|
|
503
503
|
} else if (order_info.status === 'F-FILLED' && trade.amount > order_info.f_amount) {
|
|
504
504
|
// this.info_log('TRADES: FILLED ORDER FILLED MORE', trade, order_info)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.18",
|
|
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.32.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.32.13",
|
|
21
21
|
"@icgio/icg-exchanges-data": "^1.10.8",
|
|
22
22
|
"@icgio/icg-utils": "^1.9.7",
|
|
23
23
|
"influx": "^5.10.0",
|