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

Method safe_string_lower_n

python/ccxt/base/exchange.py:922–929  ·  view source on GitHub ↗
(dictionary, key_list, default_value=None)

Source from the content-addressed store, hash-verified

920
921 @staticmethod
922 def safe_string_lower_n(dictionary, key_list, default_value=None):
923 value = Exchange.get_object_value_from_key_list(dictionary, key_list)
924 if value is not None:
925 return str(value).lower()
926 elif default_value is None:
927 return default_value
928 else:
929 return default_value.lower()
930
931 @staticmethod
932 def safe_string_upper_n(dictionary, key_list, default_value=None):

Callers 11

test_safe_methodsFunction · 0.95
create_order_requestMethod · 0.80
parse_tradeMethod · 0.80
parse_tickerMethod · 0.80
parse_transactionMethod · 0.80
create_order_requestMethod · 0.80
parse_tradeMethod · 0.80
parse_tickerMethod · 0.80
parse_transactionMethod · 0.80
parse_ws_orderMethod · 0.80
parse_ws_tradeMethod · 0.80

Calls 1

Tested by 1

test_safe_methodsFunction · 0.76