mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 23:04:21 +01:00
Merge pull request #1 from itsdeka/patch-1
Nonce generation must be the same of the previous version.
This commit is contained in:
@@ -174,7 +174,7 @@ class BfxWebsocketClient(object):
|
||||
async def __authenticate(self, API_KEY, API_SECRET, filter=None):
|
||||
data = { "event": "auth", "filter": filter, "apiKey": API_KEY }
|
||||
|
||||
data["authNonce"] = int(time.time()) * 1000
|
||||
data["authNonce"] = int(round(time.time() * 1_000_000))
|
||||
|
||||
data["authPayload"] = "AUTH" + str(data["authNonce"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user