From 9a76dbca2d91c29addc834f2fcea8b4c02d64311 Mon Sep 17 00:00:00 2001 From: Tosh Lyons Date: Wed, 12 Feb 2014 17:01:41 -0600 Subject: [PATCH] increase nonce precision previously limited to 1 second --- Cryptsy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cryptsy.py b/Cryptsy.py index 32f63e1..5bdf90e 100755 --- a/Cryptsy.py +++ b/Cryptsy.py @@ -33,7 +33,7 @@ def api_query(self, method, req={}): return json.loads(ret.read()) else: req['method'] = method - req['nonce'] = int(time.time()) + req['nonce'] = int(time.time()*1000) post_data = urllib.urlencode(req) sign = hmac.new(self.Secret, post_data, hashlib.sha512).hexdigest()