@icgio/icg-exchanges-wrapper 1.14.152 → 1.14.153

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.
@@ -2,15 +2,15 @@ const _ = require('lodash')
2
2
 
3
3
  const { forex_rate, constants, utils } = require('@icgio/icg-utils')
4
4
 
5
- let USDCNY, USDKRW, USDTHB
5
+ let USDCNY, USDKRW, USDHKD
6
6
  forex_rate.get_forex_rate('USDCNY', (res) => {
7
7
  USDCNY = res
8
8
  })
9
9
  forex_rate.get_forex_rate('USDKRW', (res) => {
10
10
  USDKRW = res
11
11
  })
12
- forex_rate.get_forex_rate('USDTHB', (res) => {
13
- USDTHB = res
12
+ forex_rate.get_forex_rate('USDHKD', (res) => {
13
+ USDHKD = res
14
14
  })
15
15
 
16
16
  const CMC_RATES_EXPIRY_TIMEOUT = 4 * 60 * 60 * 1000
@@ -130,8 +130,8 @@ module.exports = class Account {
130
130
  profit.USD += position
131
131
  } else if (_.includes(['KRW'], cur)) {
132
132
  profit.USD += position / USDKRW
133
- } else if (_.includes(['THB'], cur)) {
134
- profit.USD += position / USDTHB
133
+ } else if (_.includes(['HKD'], cur)) {
134
+ profit.USD += position / USDHKD
135
135
  } else if (_.includes(['CNYT'], cur)) {
136
136
  profit.USD += position / USDCNY
137
137
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/icg-exchanges-wrapper",
3
- "version": "1.14.152",
3
+ "version": "1.14.153",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@icgio/icg-exchanges": "^1.32.83",
21
21
  "@icgio/icg-exchanges-data": "^1.10.73",
22
- "@icgio/icg-utils": "^1.9.28",
22
+ "@icgio/icg-utils": "^1.9.29",
23
23
  "influx": "^5.10.0",
24
24
  "lodash": "^4.17.20",
25
25
  "uuid": "^11.1.0",