@icgio/icg-exchanges-wrapper 1.21.10 → 1.21.11

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.
@@ -766,11 +766,11 @@ module.exports = class Orders {
766
766
  continue
767
767
  }
768
768
  if (exchange_status === 'N-FILLED') continue
769
+ if (local_order.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
  if (local_order.status === exchange_status && local_filled_amount === polled_filled_amount) continue
772
773
  this.log_terminal_divergence('query_order', exchange, pair, polled_order.order_id, local_order.status, exchange_status)
773
- if (local_order.status === 'F-FILLED' && exchange_status === 'P-FILLED') continue
774
774
  const merged_filled_amount = Math.max(polled_filled_amount, local_filled_amount)
775
775
  const total_amount = round_amount(exchange, pair, local_order.t_amount || polled_order.t_amount || 0)
776
776
  const tag = polled_order.status !== exchange_status ? ' (' + polled_order.status + ')' : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.21.10",
3
+ "version": "1.21.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {