@icgio/clients-config 1.0.308 → 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.
Files changed (2) hide show
  1. package/config.js +9 -5
  2. package/package.json +1 -1
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 forex_rate_currencies = ['BTC', 'ETH', 'BNB', 'USD', 'USDC', 'USDT', 'HKD', 'KRW', 'THB']
63
- module.exports.forex_rate_currencies = forex_rate_currencies
62
+ const quote_currencies = ['BTC', 'ETH', 'BNB', 'USD', 'USDC', 'USDT', 'HKD', 'KRW', 'THB']
63
+ module.exports.quote_currencies = quote_currencies
64
64
 
65
- // Build regex pattern from forex_rate_currencies (sorted by length desc to match longer first)
66
- const quotePattern = [...forex_rate_currencies].sort((a, b) => b.length - a.length).join('|')
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.client_currencies_with_stables = _.fromPairs(_.keys(client_exchange_pairs).map((cur) => [cur, _.uniq([..._.split(cur, '-'), ...forex_rate_currencies])]))
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icgio/clients-config",
3
- "version": "1.0.308",
3
+ "version": "1.0.309",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {