@icgio/icg-exchanges-wrapper 1.9.24 → 1.9.27
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/account.js +2 -2
- package/package.json +4 -4
package/middleware/account.js
CHANGED
|
@@ -76,9 +76,9 @@ module.exports = class Account {
|
|
|
76
76
|
profit.USD += position / USDCNY
|
|
77
77
|
} else {
|
|
78
78
|
if (!cmc_rates[cur]) {
|
|
79
|
-
console.
|
|
79
|
+
console.log('get_exchange_profit rates_cmc %s does not exist', cur)
|
|
80
80
|
} else if (cmc_rates[cur].update_time < new Date().getTime() - 4 * 60 * 60 * 1000) { // some currencies like USDT are updating slow
|
|
81
|
-
console.
|
|
81
|
+
console.log('get_exchange_profit rates_cmc %s expired', cur)
|
|
82
82
|
}
|
|
83
83
|
profit.USD += position * _.get(cmc_rates, [cur, 'USD'], 0)
|
|
84
84
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.27",
|
|
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.
|
|
21
|
-
"@icgio/icg-exchanges-data": "^1.6.
|
|
22
|
-
"@icgio/icg-utils": "^1.7.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.27.17",
|
|
21
|
+
"@icgio/icg-exchanges-data": "^1.6.10",
|
|
22
|
+
"@icgio/icg-utils": "^1.7.6",
|
|
23
23
|
"influx": "^5.7.0",
|
|
24
24
|
"lodash": "^4.17.20",
|
|
25
25
|
"needle": "^2.6.0",
|