@icgio/clients-config 1.0.307 → 1.0.309
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/.gitsecret/paths/mapping.cfg +1 -1
- package/config.js +9 -5
- package/data-source.js.secret +0 -0
- package/package.json +1 -1
- package/secretread.js.secret +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
secretread.js:
|
|
1
|
+
secretread.js:a1274de2099e1d947fe2bf61ecc0f734ab169dfbaddcd688d748faff2f750414
|
|
2
2
|
data-source.js:440e328f62856d665e4b66a66f55406e0c9f3a974d2be3c000041fd1c552652b
|
package/config.js
CHANGED
|
@@ -59,11 +59,15 @@ module.exports.all_main_exchanges = all_main_exchanges
|
|
|
59
59
|
/*
|
|
60
60
|
["BTC", "ETH", "BNB", "USD", "USDC", "USDT", "HKD", "KRW", "THB"]
|
|
61
61
|
*/
|
|
62
|
-
const
|
|
63
|
-
module.exports.
|
|
62
|
+
const quote_currencies = ['BTC', 'ETH', 'BNB', 'USD', 'USDC', 'USDT', 'HKD', 'KRW', 'THB']
|
|
63
|
+
module.exports.quote_currencies = quote_currencies
|
|
64
64
|
|
|
65
|
-
//
|
|
66
|
-
const
|
|
65
|
+
// Stablecoins treated as 1:1 with USD (USD, USDC, USDT)
|
|
66
|
+
const stablecoins_usd_1 = ['USD', 'USDC', 'USDT']
|
|
67
|
+
module.exports.stablecoins_usd_1 = stablecoins_usd_1
|
|
68
|
+
|
|
69
|
+
// Build regex pattern from quote_currencies (sorted by length desc to match longer first)
|
|
70
|
+
const quotePattern = [...quote_currencies].sort((a, b) => b.length - a.length).join('|')
|
|
67
71
|
const pairRegex = new RegExp(`^([A-Z0-9]+?)(${quotePattern})$`)
|
|
68
72
|
|
|
69
73
|
/*
|
|
@@ -146,7 +150,7 @@ module.exports.client_exchanges = _.fromPairs(Object.keys(client_exchange_pairs)
|
|
|
146
150
|
"HKBITEX-BTC": ["HKBITEX", "BTC", "ETH", "BNB", "USD", "USDC", "USDT", "HKD", "KRW", "THB"]
|
|
147
151
|
}
|
|
148
152
|
*/
|
|
149
|
-
module.exports.
|
|
153
|
+
module.exports.client_currencies_with_quotes = _.fromPairs(_.keys(client_exchange_pairs).map((cur) => [cur, _.uniq([..._.split(cur, '-'), ...quote_currencies])]))
|
|
150
154
|
|
|
151
155
|
/*
|
|
152
156
|
{
|
package/data-source.js.secret
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/secretread.js.secret
CHANGED
|
Binary file
|