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

Function log_template

python/ccxt/test/exchange/base/test_shared_methods.py:22–27  ·  view source on GitHub ↗
(exchange, method, entry)

Source from the content-addressed store, hash-verified

20from ccxt.base.errors import OperationFailed # noqa E402
21
22def log_template(exchange, method, entry):
23 # there are cases when exchange is undefined (eg. base tests)
24 id = exchange.id if (exchange is not None) else 'undefined'
25 method_string = method if (method is not None) else 'undefined'
26 entry_string = exchange.json(entry) if (exchange is not None and entry is not None) else ''
27 return ' <<< ' + id + ' ' + method_string + ' ::: ' + entry_string + ' >>> '
28
29
30def is_temporary_failure(e):

Callers 15

assert_structureFunction · 0.85
assert_timestampFunction · 0.85
assert_currency_codeFunction · 0.85
assert_symbolFunction · 0.85
assert_symbol_in_marketsFunction · 0.85
assert_greaterFunction · 0.85
assert_greater_or_equalFunction · 0.85
assert_lessFunction · 0.85
assert_less_or_equalFunction · 0.85
assert_equalFunction · 0.85

Calls 1

jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…