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

Method safe_string_upper

python/ccxt/base/exchange.py:785–792  ·  view source on GitHub ↗
(dictionary, key, default_value=None)

Source from the content-addressed store, hash-verified

783
784 @staticmethod
785 def safe_string_upper(dictionary, key, default_value=None):
786 try:
787 value = dictionary[key]
788 if value is not None and value != '':
789 return str(value).upper()
790 except Exception:
791 pass
792 return default_value.upper() if default_value is not None else default_value
793
794 @staticmethod
795 def safe_integer(dictionary, key, default_value=None):

Callers 15

test_safe_methodsFunction · 0.95
is_post_onlyMethod · 0.95
handle_post_onlyMethod · 0.95
handle_time_in_forceMethod · 0.95
fetch_balanceMethod · 0.80
create_orders_requestMethod · 0.80
edit_orders_requestMethod · 0.80
parse_orderMethod · 0.80
fetch_balanceMethod · 0.80
parse_transferMethod · 0.80
fetch_my_dust_tradesMethod · 0.80
fetch_statusMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_safe_methodsFunction · 0.76