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

Method index_by_stringified_numeric_id

python/ccxt/extended.py:352–364  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

350 return markets
351
352 def index_by_stringified_numeric_id(self, input):
353 result = {}
354 if input is None:
355 return None
356 keys = list(input.keys())
357 for i in range(0, len(keys)):
358 key = keys[i]
359 item = input[key]
360 numericIdString = self.safe_string(item, 'numericId')
361 if numericIdString is None:
362 continue
363 result[numericIdString] = item
364 return result
365
366 def fetch_markets(self, params={}) -> List[Market]:
367 """

Callers 1

load_marketsMethod · 0.95

Calls 2

safe_stringMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected