@icgio/icg-exchanges-wrapper 1.14.262 → 1.14.263
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/orders.js +7 -8
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -4,7 +4,7 @@ const { randomUUID: uuid } = require('crypto')
|
|
|
4
4
|
|
|
5
5
|
const ICGExchanges = require('@icgio/icg-exchanges')
|
|
6
6
|
const utils = require('@icgio/icg-utils').utils
|
|
7
|
-
const {
|
|
7
|
+
const { crypto_rates: get_crypto_rates, observable: Observable } = require('@icgio/icg-utils')
|
|
8
8
|
|
|
9
9
|
const Account = require('./account.js')
|
|
10
10
|
const { ws_data_client } = require('../lib/ws-data-client.js')
|
|
@@ -1544,20 +1544,19 @@ module.exports = class Orders {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
get_ohlcv(this.Exchanges, this.exchange_pairs_without_affiliates, this.interval_dict)
|
|
1546
1546
|
}
|
|
1547
|
-
check_cmc_rates(data, type
|
|
1548
|
-
let check_cmc_rates_base = (data, type
|
|
1549
|
-
|
|
1547
|
+
check_cmc_rates(data, type) {
|
|
1548
|
+
let check_cmc_rates_base = (data, type) => {
|
|
1549
|
+
get_crypto_rates(
|
|
1550
1550
|
(rates) => {
|
|
1551
1551
|
this.cmc_rates = rates
|
|
1552
1552
|
},
|
|
1553
1553
|
data,
|
|
1554
|
-
type
|
|
1555
|
-
source
|
|
1554
|
+
type
|
|
1556
1555
|
)
|
|
1557
1556
|
}
|
|
1558
|
-
check_cmc_rates_base(data, type
|
|
1557
|
+
check_cmc_rates_base(data, type)
|
|
1559
1558
|
setInterval(() => {
|
|
1560
|
-
check_cmc_rates_base(data, type
|
|
1559
|
+
check_cmc_rates_base(data, type)
|
|
1561
1560
|
}, 15 * 60 * 1000)
|
|
1562
1561
|
}
|
|
1563
1562
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.263",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@icgio/icg-exchanges": "^1.32.136",
|
|
21
|
-
"@icgio/icg-utils": "^1.9.
|
|
21
|
+
"@icgio/icg-utils": "^1.9.44",
|
|
22
22
|
"lodash": "^4.17.20",
|
|
23
23
|
"pg": "^8.17.2"
|
|
24
24
|
}
|