@icgio/icg-exchanges-wrapper 1.14.212 → 1.14.214
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 +4 -4
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -547,8 +547,8 @@ module.exports = class Orders {
|
|
|
547
547
|
}, this.delete_finished_orders_timeout)
|
|
548
548
|
} else if (
|
|
549
549
|
_.includes(['N-FILLED', 'P-FILLED'], order_info.status) &&
|
|
550
|
-
trade.amount > order_info.f_amount &&
|
|
551
|
-
trade.amount / order_info.t_amount > this.p_filled_threshold
|
|
550
|
+
parseFloat(trade.amount) > parseFloat(order_info.f_amount) &&
|
|
551
|
+
parseFloat(trade.amount) / parseFloat(order_info.t_amount) > this.p_filled_threshold
|
|
552
552
|
) {
|
|
553
553
|
// console.log('TRADES: %s %s ORDER P-FILLED', exchange, pair, trade)
|
|
554
554
|
this.update_order_info(
|
|
@@ -662,8 +662,8 @@ module.exports = class Orders {
|
|
|
662
662
|
}, this.delete_finished_orders_timeout)
|
|
663
663
|
} else if (
|
|
664
664
|
_.includes(['N-FILLED', 'P-FILLED'], order_info.status) &&
|
|
665
|
-
order.f_amount > order_info.f_amount &&
|
|
666
|
-
order.f_amount / order_info.t_amount > this.p_filled_threshold
|
|
665
|
+
parseFloat(order.f_amount) > parseFloat(order_info.f_amount) &&
|
|
666
|
+
parseFloat(order.f_amount) / parseFloat(order_info.t_amount) > this.p_filled_threshold
|
|
667
667
|
) {
|
|
668
668
|
// console.log('ORDERS: %s %s ORDER P-FILLED', exchange, pair)
|
|
669
669
|
this.update_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.214",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@icgio/icg-exchanges": "^1.32.111",
|
|
21
|
-
"@icgio/icg-exchanges-data": "^1.10.
|
|
21
|
+
"@icgio/icg-exchanges-data": "^1.10.95",
|
|
22
22
|
"@icgio/icg-utils": "^1.9.36",
|
|
23
23
|
"influx": "^5.11.0",
|
|
24
24
|
"lodash": "^4.17.20",
|