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

Method safe_string_lower

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

Source from the content-addressed store, hash-verified

773
774 @staticmethod
775 def safe_string_lower(dictionary, key, default_value=None):
776 try:
777 value = dictionary[key]
778 if value is not None and value != '':
779 return str(value).lower()
780 except Exception:
781 pass
782 return default_value.lower() if default_value is not None else default_value
783
784 @staticmethod
785 def safe_string_upper(dictionary, key, default_value=None):

Callers 15

test_safe_methodsFunction · 0.95
parse_orderMethod · 0.80
parse_positionMethod · 0.80
parse_tradeMethod · 0.80
fetch_option_marketsMethod · 0.80
parse_tradeMethod · 0.80
parse_orderMethod · 0.80
create_order_requestMethod · 0.80
parse_leverageMethod · 0.80
create_order_requestMethod · 0.80
create_orders_requestMethod · 0.80
edit_orders_requestMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_safe_methodsFunction · 0.76