@icgio/icg-exchanges-wrapper 1.14.94 → 1.14.96
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 +2 -1
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -576,7 +576,7 @@ module.exports = class Orders {
|
|
|
576
576
|
} else if (_.includes(['F-FILLED', 'P-FILLED'], order_info.status)) {
|
|
577
577
|
} else if (_.includes(['CANCELED', 'CANCELING'], order_info.status) && trade.amount === order_info.f_amount) {
|
|
578
578
|
} else {
|
|
579
|
-
this.info_log('TRADES: UNKNOWN %j', trade)
|
|
579
|
+
this.info_log('TRADES: UNKNOWN %j %j', order_info, trade)
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
})
|
|
@@ -650,6 +650,7 @@ module.exports = class Orders {
|
|
|
650
650
|
open_orders[exchange][pair].open_orders.map((order) => {
|
|
651
651
|
if (_.get(this.order_info, [exchange, pair, order.type, order.order_id])) {
|
|
652
652
|
let order_info = this.order_info[exchange][pair][order.type][order.order_id]
|
|
653
|
+
order.f_amount = round_amount(_.upperFirst(exchange.replace('_2', '')), pair, order.f_amount)
|
|
653
654
|
if (_.includes(['N-FILLED', 'P-FILLED'], order_info.status) && order.f_amount > order_info.f_amount && order.f_amount / order_info.t_amount > this.f_filled_threshold) {
|
|
654
655
|
// this.info_log('ORDERS: %s %s ORDER F-FILLED', exchange, pair)
|
|
655
656
|
this.update_order_info(
|