@icgio/icg-exchanges-wrapper 1.14.251 → 1.14.252
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 +1 -1
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -741,7 +741,7 @@ module.exports = class Orders {
|
|
|
741
741
|
// If CANCELING orders are no longer in open_orders, infer they are canceled.
|
|
742
742
|
const open_orders_ids_set = new Set(open_orders[exchange][pair].open_orders.map((o) => o.order_id))
|
|
743
743
|
this.get_order_info_status_all(exchange, pair, 'both', 'CANCELING').map((order_info) => {
|
|
744
|
-
if (!open_orders_ids_set.has(order_info.order_id)) {
|
|
744
|
+
if (order_info.order_id && !open_orders_ids_set.has(order_info.order_id)) {
|
|
745
745
|
this.update_order_info(
|
|
746
746
|
exchange,
|
|
747
747
|
pair,
|