@icgio/icg-exchanges-wrapper 1.9.143 → 1.9.145

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.
@@ -650,6 +650,7 @@ module.exports = class Orders {
650
650
  // start: log every f-filled trade for future analysis
651
651
  if (dict.status === 'F-FILLED') {
652
652
  let { price, amount, f_amount, t_amount, fees, close_time } = _.get(this.order_info, [exchange, pair, type, order_id])
653
+ fees = fees.toString()
653
654
  console.log(`f_filled_orders_info:${exchange},${pair},${type},${order_id},${price},${amount},${f_amount},${t_amount},${fees},${close_time},${note}`)
654
655
  }
655
656
  // end: log every f-filled trade for future analysis
@@ -672,16 +673,16 @@ module.exports = class Orders {
672
673
  let max_base_cur_amount = base_cur_balance - _.get(this.min_reserve_balance, [exchange, base_cur], 0)
673
674
  if (max_cur_amount > 0) {
674
675
  } else {
675
- if (cur_balance > 0) {
676
- console.error('balance low', exchange, cur, cur_balance, this.min_reserve_balance[exchange][cur])
677
- }
676
+ // if (cur_balance > 0) {
677
+ // console.log('balance low', exchange, cur, cur_balance, this.min_reserve_balance[exchange][cur])
678
+ // }
678
679
  max_cur_amount = 0
679
680
  }
680
681
  if (max_base_cur_amount > 0) {
681
682
  } else {
682
- if (base_cur_balance > 0) {
683
- console.error('balance low', exchange, base_cur, base_cur_balance, this.min_reserve_balance[exchange][base_cur])
684
- }
683
+ // if (base_cur_balance > 0) {
684
+ // console.log('balance low', exchange, base_cur, base_cur_balance, this.min_reserve_balance[exchange][base_cur])
685
+ // }
685
686
  max_base_cur_amount = 0
686
687
  }
687
688
  _.set(this.buy_sell_limits_against_reserve_balance, [exchange, pair], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.9.143",
3
+ "version": "1.9.145",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -17,9 +17,9 @@
17
17
  },
18
18
  "homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
19
19
  "dependencies": {
20
- "@icgio/icg-exchanges": "^1.27.98",
21
- "@icgio/icg-exchanges-data": "^1.6.53",
22
- "@icgio/icg-utils": "^1.7.26",
20
+ "@icgio/icg-exchanges": "^1.27.100",
21
+ "@icgio/icg-exchanges-data": "^1.6.54",
22
+ "@icgio/icg-utils": "^1.7.29",
23
23
  "influx": "^5.7.0",
24
24
  "lodash": "^4.17.20",
25
25
  "uuid": "^8.3.2",