MCPcopy
hub / github.com/ccxt/ccxt / parseCurrencies

Method parseCurrencies

java/lib/src/main/java/io/github/ccxt/Exchange.java:5126–5141  ·  view source on GitHub ↗
(Object rawCurrencies)

Source from the content-addressed store, hash-verified

5124 }
5125
5126 public Object parseCurrencies(Object rawCurrencies)
5127 {
5128 Object result = new java.util.HashMap<String, Object>() {{}};
5129 Object arr = this.toArray(rawCurrencies);
5130 for (var i = 0; Helpers.isLessThan(i, Helpers.getArrayLength(arr)); i++)
5131 {
5132 Object parsed = this.parseCurrency(Helpers.GetValue(arr, i));
5133 if (Helpers.isTrue(Helpers.isEqual(parsed, null)))
5134 {
5135 continue;
5136 }
5137 Object code = Helpers.GetValue(parsed, "code");
5138 Helpers.addElementToObject(result, code, parsed);
5139 }
5140 return result;
5141 }
5142
5143 public Object parseMarket(Object market)
5144 {

Callers 15

fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45
fetchCurrenciesMethod · 0.45

Calls 8

toArrayMethod · 0.95
isLessThanMethod · 0.95
getArrayLengthMethod · 0.95
parseCurrencyMethod · 0.95
GetValueMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
addElementToObjectMethod · 0.95

Tested by

no test coverage detected