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

Method safe_string_upper_n

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

Source from the content-addressed store, hash-verified

930
931 @staticmethod
932 def safe_string_upper_n(dictionary, key_list, default_value=None):
933 value = Exchange.get_object_value_from_key_list(dictionary, key_list)
934 if value is not None:
935 return str(value).upper()
936 elif default_value is None:
937 return default_value
938 else:
939 return default_value.upper()
940
941 @staticmethod
942 def safe_integer_n(dictionary, key_list, default_value=None):

Callers 3

test_safe_methodsFunction · 0.95
parse_orderMethod · 0.80
parse_orderMethod · 0.80

Calls 1

Tested by 1

test_safe_methodsFunction · 0.76