@icgio/icg-exchanges-wrapper 1.21.14 → 1.21.15
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 -0
- package/package.json +1 -1
package/middleware/orders.js
CHANGED
|
@@ -766,6 +766,7 @@ module.exports = class Orders {
|
|
|
766
766
|
continue
|
|
767
767
|
}
|
|
768
768
|
if (exchange_status === 'N-FILLED') continue
|
|
769
|
+
if (local_order.status === 'F-FILLED' && exchange_status === 'F-FILLED') continue
|
|
769
770
|
const local_filled_amount = round_amount(exchange, pair, local_order.f_amount || 0)
|
|
770
771
|
const polled_filled_amount = round_amount(exchange, pair, polled_order.f_amount || 0)
|
|
771
772
|
const compare_total = round_amount(exchange, pair, local_order.t_amount || polled_order.t_amount || 0)
|