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

Method urlencode_base64

python/ccxt/base/exchange.py:1423–1428  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1421
1422 @staticmethod
1423 def urlencode_base64(s):
1424 payload = s
1425 if isinstance(s, str):
1426 payload64 = Exchange.string_to_base64(s)
1427 payload = Exchange.base64_to_binary(payload64)
1428 return base64.urlsafe_b64encode(payload).decode().rstrip('=')
1429
1430 @staticmethod
1431 def binary_to_base64(s):

Callers 6

test_urlencode_base64Function · 0.95
signMethod · 0.80
signMethod · 0.80
signMethod · 0.80
signMethod · 0.80
jwtMethod · 0.80

Calls 3

string_to_base64Method · 0.80
base64_to_binaryMethod · 0.80
decodeMethod · 0.45

Tested by 1

test_urlencode_base64Function · 0.76