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

Function exchange_prop

python/ccxt/test/exchange/base/test_shared_methods.py:555–561  ·  view source on GitHub ↗
(exchange, key, default_value=None)

Source from the content-addressed store, hash-verified

553
554
555def exchange_prop(exchange, key, default_value=None):
556 value = exchange.get_property(exchange, str(key))
557 if value is not None:
558 return value
559 # try UpperCase key also, for other langs
560 key_upper = exchange.capitalize(str(key))
561 return exchange.get_property(exchange, key_upper, default_value)

Callers

nothing calls this directly

Calls 2

get_propertyMethod · 0.80
capitalizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…