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

Method encode_values_with_json

python/ccxt/async_support/aster.py:3965–3975  ·  view source on GitHub ↗
(self, values: dict)

Source from the content-addressed store, hash-verified

3963 return {'url': url, 'method': method, 'body': body, 'headers': headers}
3964
3965 def encode_values_with_json(self, values: dict) -> str:
3966 encodedString = ''
3967 keys = list(values.keys())
3968 for i in range(0, len(keys)):
3969 key = keys[i]
3970 value = values[key]
3971 isObj = isinstance(value, list) or self.is_dictionary(value)
3972 valueJsonified = self.json(value) if isObj else str(value)
3973 encoded = self.encode_uri_component(valueJsonified)
3974 encodedString += key + '=' + encoded + '&'
3975 return encodedString[0:-1]
3976
3977 def capitalize_keys(self, dict: dict) -> dict:
3978 capitalized = {}

Callers 1

signMethod · 0.95

Calls 4

is_dictionaryMethod · 0.80
encode_uri_componentMethod · 0.80
rangeFunction · 0.50
jsonMethod · 0.45

Tested by

no test coverage detected