We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf8cda commit d407f66Copy full SHA for d407f66
ally/RateLimit.py
@@ -29,18 +29,16 @@
29
"""
30
import time
31
from datetime import datetime, timedelta, timezone
32
-from .exception import RateLimitException
33
34
import pytz
35
36
from .classes import RequestType
+from .exception import RateLimitException
37
38
__all__ = ["query"]
39
40
-
41
centraltz = pytz.timezone("America/Chicago")
42
43
44
_rl_exp_datetime = {
45
RequestType.Order.value: None,
46
RequestType.Quote.value: None,
@@ -117,7 +115,7 @@ def wait_until_ally_time(req_type):
117
115
118
116
# Block thread
119
total_seconds = (a_time - now).total_seconds()
120
- if total_seconds>0:
+ if total_seconds > 0:
121
time.sleep(total_seconds)
122
123
0 commit comments