@icgio/icg-exchanges-wrapper 1.14.104 → 1.14.106
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 -2
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -67,7 +67,7 @@ const PROCESS_OPEN_ORDERS_TRADERS_INTERVAL_MS = 500
|
|
|
67
67
|
const MARKET_HISTORY_DEFAULT_MS = 10 * 60 * 1000
|
|
68
68
|
const TRADES_DEFAULT_MS = 7 * 24 * 60 * 60 * 1000
|
|
69
69
|
const NO_CALLBACK_TIMEOUT_MS = 2 * 60 * 1000
|
|
70
|
-
const PROCESS_RATES_THROTTLE_MS =
|
|
70
|
+
const PROCESS_RATES_THROTTLE_MS = 20
|
|
71
71
|
|
|
72
72
|
module.exports = class Orders {
|
|
73
73
|
constructor(exchange_cur_quote_cur_dict, cd, settings) {
|
|
@@ -1314,7 +1314,7 @@ module.exports = class Orders {
|
|
|
1314
1314
|
bids = bids.slice(0, RATES_LENGTH_MAX)
|
|
1315
1315
|
_.set(this.rates, [exchange, pair], { asks, bids, update_time: new Date() })
|
|
1316
1316
|
/*
|
|
1317
|
-
* throttle to
|
|
1317
|
+
* throttle to 20ms
|
|
1318
1318
|
*/
|
|
1319
1319
|
throttled_process_rates()
|
|
1320
1320
|
} else if (_.get(this.rates, [exchange, pair, 'update_time']) < new Date().getTime() - this.interval_dict[exchange].rates) {
|
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.106",
|
|
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.32.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.32.61",
|
|
21
21
|
"@icgio/icg-exchanges-data": "^1.10.55",
|
|
22
22
|
"@icgio/icg-utils": "^1.9.16",
|
|
23
23
|
"influx": "^5.10.0",
|