@icgio/clients-config 1.0.5 → 1.0.8
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/config-archive.json +15 -4
- package/config.json +0 -16
- package/data-source.js.secret +0 -0
- package/index.js +2 -2
- package/package.json +1 -1
- package/secretread.js.secret +0 -0
- package/update-config-json.js +1 -12
package/config-archive.json
CHANGED
|
@@ -69,6 +69,10 @@
|
|
|
69
69
|
},
|
|
70
70
|
"CARAC": {
|
|
71
71
|
"Xt": ["CARACUSDT"]
|
|
72
|
+
},
|
|
73
|
+
"CELO": {
|
|
74
|
+
"Binance": ["ETHUSDC"],
|
|
75
|
+
"Uniswap": ["ETHUSDC"]
|
|
72
76
|
}
|
|
73
77
|
},
|
|
74
78
|
"client_not_include_exchanges": {
|
|
@@ -87,7 +91,8 @@
|
|
|
87
91
|
"VTC": [],
|
|
88
92
|
"TV": [],
|
|
89
93
|
"TGMT": [],
|
|
90
|
-
"CARAC": []
|
|
94
|
+
"CARAC": [],
|
|
95
|
+
"CELO": []
|
|
91
96
|
},
|
|
92
97
|
"client_pair_main_exchanges": {
|
|
93
98
|
"AVAV": {
|
|
@@ -137,6 +142,9 @@
|
|
|
137
142
|
},
|
|
138
143
|
"CARAC": {
|
|
139
144
|
"CARACUSDT": ["Xt"]
|
|
145
|
+
},
|
|
146
|
+
"CELO": {
|
|
147
|
+
"ETHUSDC": ["Binance"]
|
|
140
148
|
}
|
|
141
149
|
},
|
|
142
150
|
"client_exchange_currencies": {
|
|
@@ -271,7 +279,8 @@
|
|
|
271
279
|
"VTC": [2, 5, 10],
|
|
272
280
|
"TV": [2, 5, 10],
|
|
273
281
|
"TGMT": [2, 5, 10],
|
|
274
|
-
"CARAC": [2, 5, 10]
|
|
282
|
+
"CARAC": [2, 5, 10],
|
|
283
|
+
"CELO": [2, 5, 10]
|
|
275
284
|
},
|
|
276
285
|
"client_benchmarks": {
|
|
277
286
|
"AVAV": ["BTC", "ETH"],
|
|
@@ -289,7 +298,8 @@
|
|
|
289
298
|
"VTC": ["BTC", "ETH"],
|
|
290
299
|
"TV": ["BTC", "ETH"],
|
|
291
300
|
"TGMT": ["BTC", "ETH"],
|
|
292
|
-
"CARAC": ["BTC", "ETH"]
|
|
301
|
+
"CARAC": ["BTC", "ETH"],
|
|
302
|
+
"CELO": ["BTC", "ETH"]
|
|
293
303
|
},
|
|
294
304
|
"client_telegram_ids": {
|
|
295
305
|
"AVAV": "-4199615909",
|
|
@@ -307,6 +317,7 @@
|
|
|
307
317
|
"VTC": "-1002045767005",
|
|
308
318
|
"TV": "-4158304999",
|
|
309
319
|
"TGMT": "-1002053322082",
|
|
310
|
-
"CARAC": "-4103921001"
|
|
320
|
+
"CARAC": "-4103921001",
|
|
321
|
+
"CELO": "-1001814469370"
|
|
311
322
|
}
|
|
312
323
|
}
|
package/config.json
CHANGED
|
@@ -13,10 +13,6 @@
|
|
|
13
13
|
"CAVADA": {
|
|
14
14
|
"Mexc": ["CAVADAUSDT"]
|
|
15
15
|
},
|
|
16
|
-
"CELO": {
|
|
17
|
-
"Binance": ["ETHUSDC"],
|
|
18
|
-
"Uniswap": ["ETHUSDC"]
|
|
19
|
-
},
|
|
20
16
|
"DIS": {
|
|
21
17
|
"Bitget": ["DISUSDT"],
|
|
22
18
|
"Coinw": ["DISUSDT"],
|
|
@@ -92,7 +88,6 @@
|
|
|
92
88
|
"AXL": [],
|
|
93
89
|
"BONG": [],
|
|
94
90
|
"CAVADA": [],
|
|
95
|
-
"CELO": [],
|
|
96
91
|
"DIS": [],
|
|
97
92
|
"DMC": [],
|
|
98
93
|
"GHD": [],
|
|
@@ -125,9 +120,6 @@
|
|
|
125
120
|
"CAVADA": {
|
|
126
121
|
"CAVADAUSDT": ["Mexc"]
|
|
127
122
|
},
|
|
128
|
-
"CELO": {
|
|
129
|
-
"ETHUSDC": ["Binance"]
|
|
130
|
-
},
|
|
131
123
|
"DIS": {
|
|
132
124
|
"DISUSDT": ["Huobi"]
|
|
133
125
|
},
|
|
@@ -207,11 +199,6 @@
|
|
|
207
199
|
"trades": 1,
|
|
208
200
|
"orderbook": 1
|
|
209
201
|
},
|
|
210
|
-
"CELO": {
|
|
211
|
-
"balance": 8,
|
|
212
|
-
"trades": 8,
|
|
213
|
-
"orderbook": 24
|
|
214
|
-
},
|
|
215
202
|
"DIS": {
|
|
216
203
|
"balance": 1,
|
|
217
204
|
"trades": 1,
|
|
@@ -377,7 +364,6 @@
|
|
|
377
364
|
"AXL": [2, 5, 10],
|
|
378
365
|
"BONG": [2, 5, 10],
|
|
379
366
|
"CAVADA": [2, 5, 10],
|
|
380
|
-
"CELO": [2, 5, 10],
|
|
381
367
|
"DIS": [2, 5, 10],
|
|
382
368
|
"DMC": [2, 10, 20],
|
|
383
369
|
"GHD": [2, 5, 10],
|
|
@@ -402,7 +388,6 @@
|
|
|
402
388
|
"AXL": ["BTC", "ETH"],
|
|
403
389
|
"BONG": ["BTC", "ETH"],
|
|
404
390
|
"CAVADA": ["BTC", "ETH"],
|
|
405
|
-
"CELO": ["BTC", "ETH"],
|
|
406
391
|
"DIS": ["BTC", "ETH"],
|
|
407
392
|
"DMC": ["BTC", "ETH"],
|
|
408
393
|
"GHD": ["BTC", "ETH"],
|
|
@@ -427,7 +412,6 @@
|
|
|
427
412
|
"AXL": "-1002044946729",
|
|
428
413
|
"BONG": "-4232215006",
|
|
429
414
|
"CAVADA": "-4272163031",
|
|
430
|
-
"CELO": "-1001814469370",
|
|
431
415
|
"DIS": "-1001996048202",
|
|
432
416
|
"DMC": "-1002101119642",
|
|
433
417
|
"GHD": "-4268297189",
|
package/data-source.js.secret
CHANGED
|
Binary file
|
package/index.js
CHANGED
package/package.json
CHANGED
package/secretread.js.secret
CHANGED
|
Binary file
|
package/update-config-json.js
CHANGED
|
@@ -74,7 +74,6 @@ function delete_client(client_name) {
|
|
|
74
74
|
delete config_file_data.client_exchange_pairs[client_name]
|
|
75
75
|
delete config_file_data.client_pair_main_exchanges[client_name]
|
|
76
76
|
delete config_file_data.client_not_include_exchanges[client_name]
|
|
77
|
-
delete config_file_data.client_exchange_currencies[client_name]
|
|
78
77
|
delete config_file_data.client_levels[client_name]
|
|
79
78
|
delete config_file_data.client_benchmarks[client_name]
|
|
80
79
|
delete config_file_data.client_telegram_ids[client_name]
|
|
@@ -116,12 +115,6 @@ function add_client(client_name) {
|
|
|
116
115
|
pattern: /^\{.*\}$/,
|
|
117
116
|
message: 'Please enter a valid JSON object.',
|
|
118
117
|
},
|
|
119
|
-
client_exchange_currencies: {
|
|
120
|
-
description: 'Enter client exchange currencies (JSON format i.e { "Gatev4": ["USDT"], "Mexc": ["AVALOX"] } )',
|
|
121
|
-
required: true,
|
|
122
|
-
pattern: /^\{.*\}$/,
|
|
123
|
-
message: 'Please enter a valid JSON object.',
|
|
124
|
-
},
|
|
125
118
|
clients_reporter_interval: {
|
|
126
119
|
description: 'Enter clients reporter interval (JSON format i.e { "balance": 1, "trades": 1, "orderbook": 1} )',
|
|
127
120
|
required: true,
|
|
@@ -157,9 +150,6 @@ function add_client(client_name) {
|
|
|
157
150
|
let pair_exchanges = result.client_pair_main_exchanges.trim()
|
|
158
151
|
pair_exchanges = JSON.parse(pair_exchanges)
|
|
159
152
|
|
|
160
|
-
let exchange_currencies = result.client_exchange_currencies.trim()
|
|
161
|
-
exchange_currencies = JSON.parse(exchange_currencies)
|
|
162
|
-
|
|
163
153
|
let reporter_interval = result.clients_reporter_interval.trim()
|
|
164
154
|
reporter_interval = JSON.parse(reporter_interval)
|
|
165
155
|
|
|
@@ -169,7 +159,7 @@ function add_client(client_name) {
|
|
|
169
159
|
|
|
170
160
|
config_file_data.client_exchange_pairs[client_name] = exchange_pairs
|
|
171
161
|
config_file_data.client_pair_main_exchanges[client_name] = pair_exchanges
|
|
172
|
-
|
|
162
|
+
|
|
173
163
|
config_file_data.clients_reporter_interval[client_name] = reporter_interval
|
|
174
164
|
|
|
175
165
|
config_file_data.client_not_include_exchanges[client_name] = not_include_exchanges
|
|
@@ -205,7 +195,6 @@ function update_config_archive(config_file_data, client_name) {
|
|
|
205
195
|
|
|
206
196
|
config_archive_data.client_exchange_pairs[client_name] = config_file_data.client_exchange_pairs[client_name]
|
|
207
197
|
config_archive_data.client_pair_main_exchanges[client_name] = config_file_data.client_pair_main_exchanges[client_name]
|
|
208
|
-
config_archive_data.client_exchange_currencies[client_name] = config_file_data.client_exchange_currencies[client_name]
|
|
209
198
|
|
|
210
199
|
config_archive_data.client_not_include_exchanges[client_name] = config_file_data.client_not_include_exchanges[client_name]
|
|
211
200
|
config_archive_data.client_levels[client_name] = config_file_data.client_levels[client_name]
|