@icgio/clients-config 1.0.183 → 1.0.185

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.js CHANGED
@@ -1,107 +1,113 @@
1
- const _ = require('lodash')
2
- const config_data = require('./config.json')
3
-
4
- const client_exchange_pairs = config_data.client_exchange_pairs
5
- module.exports.client_exchange_pairs = client_exchange_pairs
6
-
7
- const client_not_include_exchanges = config_data.client_not_include_exchanges
8
- module.exports.client_not_include_exchanges = client_not_include_exchanges
9
-
10
- const client_pair_main_exchanges = config_data.client_pair_main_exchanges
11
- module.exports.client_pair_main_exchanges = client_pair_main_exchanges
12
-
13
- let client_exchange_currencies = {}
14
- for (let client in client_exchange_pairs) {
15
- for (let exchange in client_exchange_pairs[client]) {
16
- _.set(
17
- client_exchange_currencies,
18
- [client, exchange],
19
- client_exchange_pairs[client][exchange].map((pair) => pair.replace(client, ''))
20
- )
21
- client_exchange_currencies[client][exchange].push(client)
22
- }
23
- }
24
- module.exports.client_exchange_currencies = client_exchange_currencies
25
-
26
- /*
27
- {
28
- AAAXXX: [Huobi, Okx],
29
- CCCXXX: [Binance, Bitz]
30
- }
31
- */
32
- let client_pair_exchanges = {}
33
- _.keys(client_exchange_pairs).map((cur) =>
34
- _.keys(client_exchange_pairs[cur]).map((exchange) => {
35
- client_exchange_pairs[cur][exchange].map((pair) => {
36
- if (!client_pair_exchanges[cur] || !client_pair_exchanges[cur][pair]) {
37
- _.set(client_pair_exchanges, [cur, pair], [])
38
- }
39
- client_pair_exchanges[cur][pair].push(exchange)
40
- })
41
- })
42
- )
43
- module.exports.client_pair_exchanges = client_pair_exchanges
44
-
45
- /*
46
- {
47
- Binance: [AAAXXX, AAAYYY, BBBYYY, BBBZZZ],
48
- Huobi: [CCCXXX, CCCYYY, DDDZZZ]
49
- }
50
- */
51
- let exchange_pairs = {}
52
- _.values(client_exchange_pairs).map((exchange_pair_dict) => _.forEach(exchange_pair_dict, (v, k) => (exchange_pairs[k] = _.concat(exchange_pairs[k] ? exchange_pairs[k] : [], v))))
53
- module.exports.exchange_pairs = exchange_pairs
54
-
55
- /*
56
- {
57
- CVT: [CVTBTC, CVTETH],
58
- HSC: [HSCETH, HSCUSDT]
59
- }
60
- */
61
- module.exports.client_pairs = _.fromPairs(Object.keys(client_exchange_pairs).map((cur) => [cur, _.union(..._.values(client_exchange_pairs[cur]))]))
62
-
63
- /*
64
- {
65
- CVT: [Binance, Bitz],
66
- HSC: [Gatev4, Kkcoin]
67
- }
68
- */
69
- module.exports.client_exchanges = _.fromPairs(Object.keys(client_exchange_pairs).map((cur) => [cur, _.keys(client_exchange_pairs[cur])]))
70
-
71
- /*
72
- {
73
- CVT: [CVT, BTC, ETH, USDT],
74
- HSC: [HSC, ETH, USDT]
75
- }
76
- */
77
- module.exports.client_currencies_with_stables = _.fromPairs(
78
- Object.keys(client_exchange_pairs).map((cur) => [cur, [cur, 'BTC', 'ETH', 'USD', 'USDT', 'USDC', 'CNYT', 'KRW', 'THB', 'TUSD', 'BNB', 'PAX']])
79
- )
80
-
81
- const clients_reporter_interval = config_data.clients_reporter_interval
82
- module.exports.clients_reporter_interval = clients_reporter_interval
83
-
84
- const balance_premium = config_data.balance_premium
85
- module.exports.balance_premium = balance_premium
86
-
87
- const client_enabled = config_data.client_enabled
88
- module.exports.client_enabled = client_enabled
89
-
90
- const client_levels = config_data.client_levels
91
- module.exports.client_levels = client_levels
92
-
93
- const client_price_index_curs = config_data.client_price_index_curs
94
- module.exports.client_price_index_curs = client_price_index_curs
95
-
96
- const client_telegram_ids = config_data.client_telegram_ids
97
- module.exports.client_telegram_ids = client_telegram_ids
98
- module.exports.telegram_id_clients = _.invertBy(client_telegram_ids)
99
-
100
- const client_additional_telegram_ids = config_data.client_additional_telegram_ids
101
- module.exports.client_additional_telegram_ids = client_additional_telegram_ids
102
-
103
- const client_telegram_sender = config_data.client_telegram_sender
104
- module.exports.client_telegram_sender = client_telegram_sender
105
-
106
- const client_dashboard_credentials = config_data.client_dashboard_credentials
107
- module.exports.client_dashboard_credentials = client_dashboard_credentials
1
+ const _ = require('lodash')
2
+ const config_data = require('./config.json')
3
+
4
+ const client_exchange_pairs = config_data.client_exchange_pairs
5
+ module.exports.client_exchange_pairs = client_exchange_pairs
6
+
7
+ const client_not_include_exchanges = config_data.client_not_include_exchanges
8
+ module.exports.client_not_include_exchanges = client_not_include_exchanges
9
+
10
+ const client_pair_main_exchanges = config_data.client_pair_main_exchanges
11
+ module.exports.client_pair_main_exchanges = client_pair_main_exchanges
12
+
13
+ let client_exchange_currencies = {}
14
+ for (let client in client_exchange_pairs) {
15
+ for (let exchange in client_exchange_pairs[client]) {
16
+ _.set(
17
+ client_exchange_currencies,
18
+ [client, exchange],
19
+ client_exchange_pairs[client][exchange].map((pair) => pair.replace(client, ''))
20
+ )
21
+ client_exchange_currencies[client][exchange].push(client)
22
+ }
23
+ }
24
+ module.exports.client_exchange_currencies = client_exchange_currencies
25
+
26
+ /*
27
+ {
28
+ AAAXXX: [Huobi, Okx],
29
+ CCCXXX: [Binance, Bitz]
30
+ }
31
+ */
32
+ let client_pair_exchanges = {}
33
+ _.keys(client_exchange_pairs).map((cur) =>
34
+ _.keys(client_exchange_pairs[cur]).map((exchange) => {
35
+ client_exchange_pairs[cur][exchange].map((pair) => {
36
+ if (!client_pair_exchanges[cur] || !client_pair_exchanges[cur][pair]) {
37
+ _.set(client_pair_exchanges, [cur, pair], [])
38
+ }
39
+ client_pair_exchanges[cur][pair].push(exchange)
40
+ })
41
+ })
42
+ )
43
+ module.exports.client_pair_exchanges = client_pair_exchanges
44
+
45
+ /*
46
+ {
47
+ Binance: [AAAXXX, AAAYYY, BBBYYY, BBBZZZ],
48
+ Huobi: [CCCXXX, CCCYYY, DDDZZZ]
49
+ }
50
+ */
51
+ let exchange_pairs = {}
52
+ _.values(client_exchange_pairs).map((exchange_pair_dict) => _.forEach(exchange_pair_dict, (v, k) => (exchange_pairs[k] = _.concat(exchange_pairs[k] ? exchange_pairs[k] : [], v))))
53
+ module.exports.exchange_pairs = exchange_pairs
54
+
55
+ /*
56
+ {
57
+ CVT: [CVTBTC, CVTETH],
58
+ HSC: [HSCETH, HSCUSDT]
59
+ }
60
+ */
61
+ module.exports.client_pairs = _.fromPairs(Object.keys(client_exchange_pairs).map((cur) => [cur, _.union(..._.values(client_exchange_pairs[cur]))]))
62
+
63
+ /*
64
+ {
65
+ CVT: [Binance, Bitz],
66
+ HSC: [Gatev4, Kkcoin]
67
+ }
68
+ */
69
+ module.exports.client_exchanges = _.fromPairs(Object.keys(client_exchange_pairs).map((cur) => [cur, _.keys(client_exchange_pairs[cur])]))
70
+
71
+ /*
72
+ {
73
+ CVT: [CVT, BTC, ETH, USDT],
74
+ HSC: [HSC, ETH, USDT]
75
+ }
76
+ */
77
+ module.exports.client_currencies_with_stables = _.fromPairs(
78
+ Object.keys(client_exchange_pairs).map((cur) => [cur, [cur, 'BTC', 'ETH', 'USD', 'USDT', 'USDC', 'CNYT', 'KRW', 'THB', 'TUSD', 'BNB', 'PAX']])
79
+ )
80
+
81
+ const clients_reporter_interval = config_data.clients_reporter_interval
82
+ module.exports.clients_reporter_interval = clients_reporter_interval
83
+
84
+ const balance_premium = config_data.balance_premium
85
+ module.exports.balance_premium = balance_premium
86
+
87
+ const client_enabled = config_data.client_enabled
88
+ module.exports.client_enabled = client_enabled
89
+
90
+ const client_levels = config_data.client_levels
91
+ module.exports.client_levels = client_levels
92
+
93
+ const client_price_index_curs = config_data.client_price_index_curs
94
+ module.exports.client_price_index_curs = client_price_index_curs
95
+
96
+ const client_telegram_ids = config_data.client_telegram_ids
97
+ module.exports.client_telegram_ids = client_telegram_ids
98
+ module.exports.telegram_id_clients = _.invertBy(client_telegram_ids)
99
+
100
+ const client_additional_telegram_ids = config_data.client_additional_telegram_ids
101
+ module.exports.client_additional_telegram_ids = client_additional_telegram_ids
102
+
103
+ const client_telegram_sender = config_data.client_telegram_sender
104
+ module.exports.client_telegram_sender = client_telegram_sender
105
+
106
+ const client_dashboard_credentials = config_data.client_dashboard_credentials
107
+ module.exports.client_dashboard_credentials = client_dashboard_credentials
108
+
109
+ const server_config_enabled = config_data.server_config_enabled
110
+ module.exports.server_config_enabled = server_config_enabled
111
+
112
+ const server_config_whitelist_ips = config_data.server_config_whitelist_ips
113
+ module.exports.server_config_whitelist_ips = server_config_whitelist_ips
package/config.json CHANGED
@@ -250,7 +250,6 @@
250
250
  "total_in_usd": {
251
251
  "SWFTC": true
252
252
  },
253
- "rate": {},
254
253
  "trades_detail": {},
255
254
  "trades": {
256
255
  "AAI": true,
@@ -272,7 +271,8 @@
272
271
  "TKT": true
273
272
  },
274
273
  "orderbook": {
275
- "IONX": true
274
+ "MAK": true,
275
+ "MIX": true
276
276
  }
277
277
  },
278
278
  "client_levels": {
@@ -285,8 +285,8 @@
285
285
  "IONX": [1, 2, 5, 10, 20, 50, 100],
286
286
  "JYAI": [1, 2, 5, 10, 20, 50, 100],
287
287
  "LUCIC": [1, 2, 5, 10, 20, 50, 100],
288
- "MAK": [1, 2, 5, 10, 20, 50, 100],
289
- "MIX": [1, 2, 5, 10, 20, 50, 100],
288
+ "MAK": [2, 5, 10],
289
+ "MIX": [2, 5, 10],
290
290
  "OPUL": [1, 2, 5, 10, 20, 50, 100],
291
291
  "SARA": [1, 2, 5, 10, 20, 50, 100],
292
292
  "SHRAP": [1, 2, 5, 10, 20, 50, 100],
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/clients-config",
3
- "version": "1.0.183",
3
+ "version": "1.0.185",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
Binary file