MCPcopy Index your code
hub / github.com/ccxt/ccxt / loadMarkets

Method loadMarkets

java/lib/src/main/java/io/github/ccxt/exchanges/Binance.java:28–36  ·  view source on GitHub ↗
(boolean reload)

Source from the content-addressed store, hash-verified

26
27 // --- loadMarkets (special: first arg is boolean reload) ---
28 @SuppressWarnings("unchecked")
29 public Map<String, MarketInterface> loadMarkets(boolean reload) {
30 Object res = super.loadMarkets(reload).join();
31 java.util.LinkedHashMap<String, MarketInterface> result = new java.util.LinkedHashMap<>();
32 for (Map.Entry<String, Object> entry : ((Map<String, Object>) res).entrySet()) {
33 result.put(entry.getKey(), new MarketInterface(entry.getValue()));
34 }
35 return result;
36 }
37 @SuppressWarnings("unchecked")
38 public CompletableFuture<Map<String, MarketInterface>> loadMarketsAsync(boolean reload) {
39 return super.loadMarkets(reload).thenApply(res -> {

Callers 15

createDelayedExchangeMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95
mainMethod · 0.95

Calls 1

getValueMethod · 0.45

Tested by 4

createDelayedExchangeMethod · 0.76
mainMethod · 0.76