Refactor sign gen into one line
parent
208a8e5d7a
commit
13df3e70d5
|
@ -195,9 +195,7 @@ class Client:
|
||||||
https://docs.kucoin.com/#authentication
|
https://docs.kucoin.com/#authentication
|
||||||
|
|
||||||
'''
|
'''
|
||||||
now = int(time.time() * 1000)
|
str_to_sign = str(int(time.time() * 1000)) + action + f'/api/{api_v}{endpoint}'
|
||||||
path = f'/api/{api_v}{endpoint}'
|
|
||||||
str_to_sign = str(now) + action + path
|
|
||||||
|
|
||||||
signature = base64.b64encode(
|
signature = base64.b64encode(
|
||||||
hmac.new(
|
hmac.new(
|
||||||
|
|
Loading…
Reference in New Issue