@icgio/icg-exchanges-wrapper 1.12.134 → 1.12.135
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 +9 -0
- package/package.json +2 -2
package/middleware/orders.js
CHANGED
|
@@ -41,6 +41,13 @@ const SWFT_LIMITS = {
|
|
|
41
41
|
private_interval_concurrent: 2000,
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
const P2B_LIMITS = {
|
|
45
|
+
public_max_concurrent: 1,
|
|
46
|
+
public_interval_concurrent: 200,
|
|
47
|
+
private_max_concurrent: 1,
|
|
48
|
+
private_interval_concurrent: 200,
|
|
49
|
+
}
|
|
50
|
+
|
|
44
51
|
const PROCESS_INTERVAL = 1000
|
|
45
52
|
const RATES_LENGTH_MAX = 100
|
|
46
53
|
const RATES_LENGTH_DEFAULT = 50
|
|
@@ -102,6 +109,8 @@ module.exports = class Orders {
|
|
|
102
109
|
LIMITS = MINIMUM_LIMITS
|
|
103
110
|
} else if (_.includes(['swft'], exchange)) {
|
|
104
111
|
LIMITS = SWFT_LIMITS
|
|
112
|
+
} else if (_.includes(['p2b'], exchange)) {
|
|
113
|
+
LIMITS = P2B_LIMITS
|
|
105
114
|
} else {
|
|
106
115
|
LIMITS = STANDARD_LIMITS
|
|
107
116
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-exchanges-wrapper",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.135",
|
|
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.30.77",
|
|
21
|
-
"@icgio/icg-exchanges-data": "^1.8.
|
|
21
|
+
"@icgio/icg-exchanges-data": "^1.8.108",
|
|
22
22
|
"@icgio/icg-utils": "^1.7.71",
|
|
23
23
|
"influx": "^5.7.0",
|
|
24
24
|
"lodash": "^4.17.20",
|