Skip to content

Commit

Permalink
fix(issue(bitvavo#21))
Browse files Browse the repository at this point in the history
  • Loading branch information
Verth-Elone committed May 4, 2021
1 parent 99f5111 commit 5fa05a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python_bitvavo_api/bitvavo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fa05a6

Please sign in to comment.