aboutsummaryrefslogtreecommitdiff
path: root/ccxt_wrapper.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-25 23:57:39 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-25 23:57:39 +0200
commitb47d7b54cca8ff142eaadf38c8bb425bf11af2cd (patch)
treee69f8f99ad47cfc3270192428fc2abee87eea65b /ccxt_wrapper.py
parentd004a2a5e15a78991870dcb90cd6db63ab40a4e6 (diff)
downloadTrader-b47d7b54cca8ff142eaadf38c8bb425bf11af2cd.tar.gz
Trader-b47d7b54cca8ff142eaadf38c8bb425bf11af2cd.tar.zst
Trader-b47d7b54cca8ff142eaadf38c8bb425bf11af2cd.zip
Handle invalid nonces
Diffstat (limited to 'ccxt_wrapper.py')
-rw-r--r--ccxt_wrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccxt_wrapper.py b/ccxt_wrapper.py
index 4ed37d9..97f359f 100644
--- a/ccxt_wrapper.py
+++ b/ccxt_wrapper.py
@@ -33,7 +33,7 @@ class poloniexE(poloniex):
33 retriable = any(re.match(call, path) for call in self.RETRIABLE_CALLS) 33 retriable = any(re.match(call, path) for call in self.RETRIABLE_CALLS)
34 if api == "public" or method == "GET" or retriable: 34 if api == "public" or method == "GET" or retriable:
35 return retry_call(origin_request, fargs=[path], fkwargs=kwargs, 35 return retry_call(origin_request, fargs=[path], fkwargs=kwargs,
36 tries=10, delay=1, exceptions=(RequestTimeout,)) 36 tries=10, delay=1, exceptions=(RequestTimeout, InvalidNonce))
37 else: 37 else:
38 return origin_request(path, **kwargs) 38 return origin_request(path, **kwargs)
39 39