diff --git a/python_bitvavo_api/bitvavo.py b/python_bitvavo_api/bitvavo.py index 2342a15..42aa5fd 100644 --- a/python_bitvavo_api/bitvavo.py +++ b/python_bitvavo_api/bitvavo.py @@ -96,6 +96,8 @@ def __init__(self, reset, bitvavo): threading.Thread.__init__(self) def waitForReset(self, waitTime): + if waitTime < 0.0: + waitTime = 0.001 # 1ms time.sleep(waitTime) if (time.time() < self.bitvavo.rateLimitReset): self.bitvavo.rateLimitRemaining = 1000