@icgio/icg-utils 1.9.20 → 1.9.21
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/lib/utils.js +15 -15
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -846,36 +846,36 @@ module.exports.exchange_cur_quote_cur_converter = (exchange_cur_quote_cur) => {
|
|
|
846
846
|
pair_exchanges[pair].push(exchange)
|
|
847
847
|
})
|
|
848
848
|
}
|
|
849
|
-
// Add
|
|
850
|
-
let
|
|
849
|
+
// Add exchange_pairs_without_numbers
|
|
850
|
+
let exchange_pairs_without_numbers = {}
|
|
851
851
|
for (let exchange in exchange_pairs) {
|
|
852
|
-
if (!exchange.
|
|
853
|
-
|
|
852
|
+
if (!exchange.includes('_')) {
|
|
853
|
+
exchange_pairs_without_numbers[exchange] = exchange_pairs[exchange]
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
856
|
// Add exchange_curs_without_2
|
|
857
|
-
let
|
|
857
|
+
let exchange_curs_without_numbers = {}
|
|
858
858
|
for (let exchange in exchange_curs) {
|
|
859
|
-
if (!exchange.
|
|
860
|
-
|
|
859
|
+
if (!exchange.includes('_')) {
|
|
860
|
+
exchange_curs_without_numbers[exchange] = exchange_curs[exchange]
|
|
861
861
|
}
|
|
862
862
|
}
|
|
863
|
-
// Add
|
|
864
|
-
let
|
|
863
|
+
// Add pair_exchanges_without_numbers
|
|
864
|
+
let pair_exchanges_without_numbers = {}
|
|
865
865
|
for (let pair in pair_exchanges) {
|
|
866
|
-
|
|
867
|
-
if (
|
|
868
|
-
delete
|
|
866
|
+
pair_exchanges_without_numbers[pair] = pair_exchanges[pair].filter((exchange) => !exchange.includes('_'))
|
|
867
|
+
if (pair_exchanges_without_numbers[pair].length === 0) {
|
|
868
|
+
delete pair_exchanges_without_numbers[pair]
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
871
|
return {
|
|
872
872
|
exchange_cur_quote_cur,
|
|
873
873
|
exchange_pairs,
|
|
874
|
-
|
|
874
|
+
exchange_pairs_without_numbers,
|
|
875
875
|
exchange_curs,
|
|
876
|
-
|
|
876
|
+
exchange_curs_without_numbers,
|
|
877
877
|
pair_exchanges,
|
|
878
|
-
|
|
878
|
+
pair_exchanges_without_numbers,
|
|
879
879
|
}
|
|
880
880
|
}
|
|
881
881
|
|