@icgio/clients-config 1.0.150 → 1.0.152

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.
@@ -0,0 +1,61 @@
1
+ const benchmarks = {
2
+ min_balance: {
3
+ ULTI: {
4
+ bybitv5_1: {
5
+ USDT: 7000,
6
+ },
7
+ },
8
+ },
9
+ orderbook_depth_in_quote_cur: {
10
+ AVALOX: {
11
+ gatev4: {
12
+ AVALOXUSDT: [[0.01, 1000]],
13
+ },
14
+ },
15
+ LUCIC: {
16
+ xt: {
17
+ LUCICUSDT: [[0.01, 1000]],
18
+ },
19
+ },
20
+ MAK: {
21
+ bitget: {
22
+ MAKUSDT: [[0.01, 500]],
23
+ },
24
+ bybitv5: {
25
+ MAKUSDT: [[0.01, 500]],
26
+ },
27
+ },
28
+ },
29
+ ask_bid_spread: {
30
+ AVALOX: {
31
+ gatev4: {
32
+ AVALOXUSDT: 0.01,
33
+ },
34
+ },
35
+ MAK: {
36
+ bitget: {
37
+ MAKUSDT: 0.01,
38
+ },
39
+ bybitv5: {
40
+ MAKUSDT: 0.01,
41
+ },
42
+ },
43
+ },
44
+ volume_24h_in_quote_cur: {
45
+ ETHF: {
46
+ mexc: {
47
+ ETHFUSDT: 50000,
48
+ },
49
+ htx: {
50
+ ETHFUSDT: 50000,
51
+ },
52
+ },
53
+ MAK: {
54
+ bitget: {
55
+ MAKUSDT: 300000,
56
+ },
57
+ },
58
+ },
59
+ }
60
+
61
+ module.exports = benchmarks
package/config.js CHANGED
@@ -1,107 +1,107 @@
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_benchmarks = config_data.client_benchmarks
94
- module.exports.client_benchmarks = client_benchmarks
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
package/config.json CHANGED
@@ -31,7 +31,8 @@
31
31
  "Xt": ["LUCICUSDT"]
32
32
  },
33
33
  "MAK": {
34
- "Bitget": ["MAKUSDT"]
34
+ "Bitget": ["MAKUSDT"],
35
+ "Bybitv5": ["MAKUSDT"]
35
36
  },
36
37
  "OPUL": {
37
38
  "Gatev4": ["OPULUSDT"],
@@ -103,7 +104,7 @@
103
104
  "LUCICUSDT": ["Xt"]
104
105
  },
105
106
  "MAK": {
106
- "MAKUSDT": ["Bitget"]
107
+ "MAKUSDT": ["Bitget", "Bybitv5"]
107
108
  },
108
109
  "OPUL": {
109
110
  "OPULUSDT": ["Gatev4", "Kucoin", "Weex"]
@@ -250,23 +251,23 @@
250
251
  }
251
252
  },
252
253
  "client_levels": {
253
- "ARMY": [10, 50, 100],
254
- "AVALOX": [10, 50, 100],
255
- "CP": [10, 50, 100],
256
- "ETHF": [10, 50, 100],
257
- "IONX": [10, 50, 100],
258
- "JYAI": [10, 50, 100],
259
- "LANLAN": [10, 50, 100],
260
- "LUCIC": [10, 50, 100],
261
- "MAK": [10, 50, 100],
262
- "OPUL": [10, 50, 100],
263
- "SARA": [10, 50, 100],
264
- "SHRAP": [10, 50, 100],
265
- "SWFTC": [10, 50, 100],
266
- "TITAN": [10, 50, 100],
267
- "ULTI": [10, 50, 100]
254
+ "ARMY": [1, 2, 5, 10, 20, 50, 100],
255
+ "AVALOX": [1, 2, 5, 10, 20, 50, 100],
256
+ "CP": [1, 2, 5, 10, 20, 50, 100],
257
+ "ETHF": [1, 2, 5, 10, 20, 50, 100],
258
+ "IONX": [1, 2, 5, 10, 20, 50, 100],
259
+ "JYAI": [1, 2, 5, 10, 20, 50, 100],
260
+ "LANLAN": [1, 2, 5, 10, 20, 50, 100],
261
+ "LUCIC": [1, 2, 5, 10, 20, 50, 100],
262
+ "MAK": [1, 2, 5, 10, 20, 50, 100],
263
+ "OPUL": [1, 2, 5, 10, 20, 50, 100],
264
+ "SARA": [1, 2, 5, 10, 20, 50, 100],
265
+ "SHRAP": [1, 2, 5, 10, 20, 50, 100],
266
+ "SWFTC": [1, 2, 5, 10, 20, 50, 100],
267
+ "TITAN": [1, 2, 5, 10, 20, 50, 100],
268
+ "ULTI": [1, 2, 5, 10, 20, 50, 100]
268
269
  },
269
- "client_benchmarks": {
270
+ "client_price_index_curs": {
270
271
  "ARMY": ["BTC", "ETH"],
271
272
  "AVALOX": ["BTC", "ETH"],
272
273
  "CP": ["BTC", "ETH"],
Binary file
package/package.json CHANGED
@@ -1,27 +1,27 @@
1
- {
2
- "name": "@icgio/clients-config",
3
- "version": "1.0.150",
4
- "description": "",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/icgio/clients-config.git"
12
- },
13
- "author": "",
14
- "license": "ISC",
15
- "bugs": {
16
- "url": "https://github.com/icgio/clients-config/issues"
17
- },
18
- "homepage": "https://github.com/icgio/clients-config#readme",
19
- "dependencies": {
20
- "lodash": "^4.17.20"
21
- },
22
- "devDependencies": {
23
- "fs-extra": "^11.2.0",
24
- "node-cmd": "^5.0.0",
25
- "prompt": "^1.3.0"
26
- }
27
- }
1
+ {
2
+ "name": "@icgio/clients-config",
3
+ "version": "1.0.152",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/icgio/clients-config.git"
12
+ },
13
+ "author": "",
14
+ "license": "ISC",
15
+ "bugs": {
16
+ "url": "https://github.com/icgio/clients-config/issues"
17
+ },
18
+ "homepage": "https://github.com/icgio/clients-config#readme",
19
+ "dependencies": {
20
+ "lodash": "^4.17.20"
21
+ },
22
+ "devDependencies": {
23
+ "fs-extra": "^11.2.0",
24
+ "node-cmd": "^5.0.0",
25
+ "prompt": "^1.3.0"
26
+ }
27
+ }
Binary file