MCPcopy Create free account
hub / github.com/ccxt/ccxt / get_markets_from_exchange

Method get_markets_from_exchange

python/ccxt/test/tests_async.py:460–471  ·  view source on GitHub ↗
(self, exchange, spot=True)

Source from the content-addressed store, hash-verified

458 return code
459
460 def get_markets_from_exchange(self, exchange, spot=True):
461 res = {}
462 markets = exchange.markets
463 keys = list(markets.keys())
464 for i in range(0, len(keys)):
465 key = keys[i]
466 market = markets[key]
467 if spot and market['spot']:
468 res[market['symbol']] = market
469 elif not spot and not market['spot']:
470 res[market['symbol']] = market
471 return res
472
473 def get_valid_symbol(self, exchange, spot=True):
474 current_type_markets = self.get_markets_from_exchange(exchange, spot)

Callers 1

get_valid_symbolMethod · 0.95

Calls 1

rangeFunction · 0.50

Tested by

no test coverage detected