This commit is contained in:
2026-05-09 16:27:09 +09:00
parent 7a8704c1d4
commit 30e63c9fc8
2 changed files with 6 additions and 6 deletions

View File

@@ -35,8 +35,8 @@ def main():
print("First message from exchange:", hello_message) print("First message from exchange:", hello_message)
# #
man.orderMan.sell("BOND", 1010, 99) man.orderMan.sell("BOND", 1002, 99)
man.orderMan.buy("BOND", 990, 99) man.orderMan.buy("BOND", 998, 99)
last_print_time = time.time() last_print_time = time.time()

View File

@@ -23,10 +23,10 @@ class OrderManager:
""" """
now = time.time() now = time.time()
if len(self._send_timestamps) == 500: # if len(self._send_timestamps) == 500:
elapsed = now - self._send_timestamps[0] # elapsed = now - self._send_timestamps[0]
if elapsed < 1.01: # if elapsed < 1.01:
return False # return False
# 전송 조건 통과 시 실제 통신 수행 # 전송 조건 통과 시 실제 통신 수행
if action_type == "add": if action_type == "add":