@icgio/icg-exchanges-wrapper 1.9.136 → 1.9.138
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 +5 -4
- package/package.json +3 -3
package/middleware/orders.js
CHANGED
|
@@ -32,7 +32,7 @@ const MINIMUM_LIMITS = {
|
|
|
32
32
|
public_max_concurrent: 2,
|
|
33
33
|
public_interval_concurrent: 1000,
|
|
34
34
|
private_max_concurrent: 1,
|
|
35
|
-
private_interval_concurrent:
|
|
35
|
+
private_interval_concurrent: 1000,
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
const PROCESS_INTERVAL = 1000
|
|
@@ -40,6 +40,7 @@ const RATES_LENGTH_MAX = 100
|
|
|
40
40
|
const RATES_LENGTH_DEFAULT = 50
|
|
41
41
|
const MARKET_HISTORY_DEFAULT_TIME = 10 * 60 * 1000
|
|
42
42
|
const TRADES_DEFAULT_TIME = 12 * 60 * 60 * 1000
|
|
43
|
+
const NO_CALLBACK_TIMEOUT = 2 * 60 * 1000
|
|
43
44
|
|
|
44
45
|
module.exports = class Orders {
|
|
45
46
|
constructor(exchange_basecur_curs_dict, cd, settings) {
|
|
@@ -85,9 +86,9 @@ module.exports = class Orders {
|
|
|
85
86
|
LIMITS
|
|
86
87
|
if (_.includes(['binance', 'gate', 'gatev4'], exchange)) {
|
|
87
88
|
LIMITS = MEDIUM_LIMITS
|
|
88
|
-
} else if (_.includes(['bitfinex', 'coinsbit', 'kucoin', 'lbank', 'okex', 'phemex', 'xt'], exchange)) {
|
|
89
|
+
} else if (_.includes(['bitfinex', 'bkex', 'coinsbit', 'kucoin', 'lbank', 'okex', 'phemex', 'xt'], exchange)) {
|
|
89
90
|
LIMITS = SMALL_LIMITS
|
|
90
|
-
} else if (_.includes(['bitforex', 'bitkub', '
|
|
91
|
+
} else if (_.includes(['bitforex', 'bitkub', 'coinbene', 'poloniex'], exchange)) {
|
|
91
92
|
LIMITS = MINIMUM_LIMITS
|
|
92
93
|
} else {
|
|
93
94
|
LIMITS = STANDARD_LIMITS
|
|
@@ -232,7 +233,7 @@ module.exports = class Orders {
|
|
|
232
233
|
order_type + ' n-opened-timeout-init'
|
|
233
234
|
)
|
|
234
235
|
}
|
|
235
|
-
},
|
|
236
|
+
}, NO_CALLBACK_TIMEOUT)
|
|
236
237
|
let limit_trade = (cb) => {
|
|
237
238
|
if (limiter_on) {
|
|
238
239
|
this.Exchanges[exchange].limit_trade(pair, method, price, amount, cb)
|
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.138",
|
|
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.
|
|
20
|
+
"@icgio/icg-exchanges": "^1.27.97",
|
|
21
21
|
"@icgio/icg-exchanges-data": "^1.6.52",
|
|
22
|
-
"@icgio/icg-utils": "^1.7.
|
|
22
|
+
"@icgio/icg-utils": "^1.7.22",
|
|
23
23
|
"influx": "^5.7.0",
|
|
24
24
|
"lodash": "^4.17.20",
|
|
25
25
|
"uuid": "^8.3.2",
|