use of org.knowm.xchange.idex.dto.ReturnTickerRequestedWithNull in project XChange by knowm.
the class IdexExchange method getExchangeMetaData.
@Override
public final ExchangeMetaData getExchangeMetaData() {
ReturnCurrenciesResponse allCurrenciesStatic = null;
try {
allCurrenciesStatic = allCurrenciesStatic();
} catch (IOException e) {
e.printStackTrace();
}
LinkedHashMap<CurrencyPair, CurrencyPairMetaData> currencyPairs = new LinkedHashMap<>();
ReturnTickerRequestedWithNull allTickers = IdexMarketDataService.Companion.allTickers;
allTickers.keySet().forEach(s -> currencyPairs.put(IdexExchange.Companion.getCurrencyPair(s), unavailableCPMeta));
LinkedHashMap<Currency, CurrencyMetaData> linkedHashMap = new LinkedHashMap<>();
allCurrenciesStatic.forEach((key, value) -> linkedHashMap.put(Currency.getInstance(key), new IdexCurrencyMeta(0, ZERO, value.getAddress(), value.getName(), value.getDecimals())));
RateLimit[] publicRateLimits = {};
return new ExchangeMetaData(currencyPairs, linkedHashMap, publicRateLimits, publicRateLimits, Boolean.FALSE);
}
Aggregations