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