@icgio/icg-exchanges-wrapper 1.10.18 → 1.10.20
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 +2 -0
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -1370,6 +1370,8 @@ module.exports = class Orders {
|
|
|
1370
1370
|
ohlcv_handler(exchange, pair, res)
|
|
1371
1371
|
})
|
|
1372
1372
|
setInterval(() => {
|
|
1373
|
+
let ohlcv_from_timetamp = new Date().floorHours(1).addHours(-OHLCV_DEFAULT_PAST_HOURS)
|
|
1374
|
+
let ohlcv_to_timestamp = new Date().floorHours(1)
|
|
1373
1375
|
Exchanges[exchange].ohlcv(pair, ohlcv_from_timetamp, ohlcv_to_timestamp, (res) => {
|
|
1374
1376
|
ohlcv_handler(exchange, pair, res)
|
|
1375
1377
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/icgio/icg-exchanges-wrapper#readme",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@icgio/icg-exchanges": "^1.28.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.28.14",
|
|
21
21
|
"@icgio/icg-exchanges-data": "^1.6.75",
|
|
22
22
|
"@icgio/icg-utils": "^1.7.40",
|
|
23
23
|
"influx": "^5.7.0",
|