From 8dc826ff20bcd00203bc13a1176a852ea480495e Mon Sep 17 00:00:00 2001 From: sgrtye Date: Wed, 30 Oct 2024 03:05:35 +0000 Subject: [PATCH] add log for time --- test/main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/main.py b/test/main.py index 78236eb..6e209e5 100644 --- a/test/main.py +++ b/test/main.py @@ -39,6 +39,8 @@ async def main(): ) ) + print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), "Monitor started") + while True: message = await websocket.recv() @@ -92,7 +94,10 @@ async def main(): + float(event2["asks"][-1]["price"]) < 1 ): - print("Arbitrage opportunities found") + print( + datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), + "Arbitrage opportunities found", + ) print(event1["asks"][-1]) print(event2["asks"][-1])