MCPcopy Index your code
hub / github.com/ccxt/ccxt / var_to_string

Method var_to_string

python/ccxt/test/tests_sync.py:884–892  ·  view source on GitHub ↗
(self, obj=None)

Source from the content-addressed store, hash-verified

882 return res
883
884 def var_to_string(self, obj=None):
885 new_string = None
886 if obj is None:
887 new_string = 'undefined'
888 elif is_null_value(obj):
889 new_string = 'null'
890 else:
891 new_string = json_stringify(obj)
892 return new_string
893
894 def assert_static_request_output(self, exchange, type, skip_keys, stored_url, request_url, stored_output, new_output):
895 if stored_url != request_url:

Callers 1

Calls 2

is_null_valueFunction · 0.90
json_stringifyFunction · 0.90

Tested by

no test coverage detected