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

Method sanitize_data_input

python/ccxt/test/tests_async.py:940–951  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

938 self.assert_new_and_stored_output(exchange, skip_keys, computed_result, stored_result, False)
939
940 def sanitize_data_input(self, input):
941 # remove nulls and replace with unefined instead
942 if input is None:
943 return None
944 new_input = []
945 for i in range(0, len(input)):
946 current = input[i]
947 if is_null_value(current):
948 new_input.append(None)
949 else:
950 new_input.append(current)
951 return new_input
952
953 async def test_request_statically(self, exchange, method, data, type, skip_keys):
954 output = None

Callers 2

Calls 3

is_null_valueFunction · 0.90
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected