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

Function table

examples/py/latoken-example.py:13–18  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

11
12
13def table(values):
14 first = values[0]
15 keys = list(first.keys()) if isinstance(first, dict) else range(0, len(first))
16 widths = [max([len(str(v[k])) for v in values]) for k in keys]
17 string = ' | '.join(['{:<' + str(w) + '}' for w in widths])
18 return "\n".join([string.format(*[str(v[k]) for k in keys]) for v in values])
19
20
21symbol = 'BTC/USDT'

Callers 1

latoken-example.pyFile · 0.70

Calls 3

rangeFunction · 0.50
maxFunction · 0.50
formatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…