@icgio/icg-exchanges-wrapper 1.15.7 → 1.15.8

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.
@@ -999,12 +999,12 @@ module.exports = class Orders {
999
999
  if (this.cancel_range_orders && !_.includes(this.major_exchanges[pair], exchange) && !_.includes(this.no_cancel_range_exchanges, exchange) && rate_major) {
1000
1000
  // console.log(exchange, pair, rate_major, orders)
1001
1001
  orders.map((order) => {
1002
- if (order.type === 'sell' && order.price < rate_major.asks[0][0] && order.order_status !== 'F-FILLED' && order.order_type !== 'arb') {
1002
+ if (order.type === 'sell' && order.price < rate_major.asks[0][0] && order.order_status !== 'F-FILLED' && order.order_type !== 'arb' && order.order_type !== 'manual') {
1003
1003
  console.log('cancel range order: %s %s %j', exchange, pair, order)
1004
1004
  order.order_type = 'range-order'
1005
1005
  this.cancel_order(exchange, pair, order)
1006
1006
  }
1007
- if (order.type === 'buy' && order.price > rate_major.bids[0][0] && order.order_status !== 'F-FILLED' && order.order_type !== 'arb') {
1007
+ if (order.type === 'buy' && order.price > rate_major.bids[0][0] && order.order_status !== 'F-FILLED' && order.order_type !== 'arb' && order.order_type !== 'manual') {
1008
1008
  console.log('cancel range order: %s %s %j', exchange, pair, order)
1009
1009
  order.order_type = 'range-order'
1010
1010
  this.cancel_order(exchange, pair, order)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.15.7",
3
+ "version": "1.15.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {