mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Nonce generation must be the same of the previous version
This commit is contained in:
@@ -19,7 +19,7 @@ class Middleware(object):
|
|||||||
assert isinstance(self.API_KEY, str) and isinstance(self.API_SECRET, str), \
|
assert isinstance(self.API_KEY, str) and isinstance(self.API_SECRET, str), \
|
||||||
"API_KEY and API_SECRET must be both str to call __build_authentication_headers"
|
"API_KEY and API_SECRET must be both str to call __build_authentication_headers"
|
||||||
|
|
||||||
nonce = str(int(time.time()) * 1000)
|
nonce = int(round(time.time() * 1000000))
|
||||||
|
|
||||||
if data == None:
|
if data == None:
|
||||||
path = f"/api/v2/{endpoint}{nonce}"
|
path = f"/api/v2/{endpoint}{nonce}"
|
||||||
|
|||||||
Reference in New Issue
Block a user