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

Method var_to_string

python/ccxt/test/tests_async.py:887–895  ·  view source on GitHub ↗
(self, obj=None)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

is_null_valueFunction · 0.90
json_stringifyFunction · 0.90

Tested by

no test coverage detected