Skip to content

Commit

Permalink
add log for time
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Oct 30, 2024
1 parent 77bc62f commit 8dc826f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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])

Expand Down

0 comments on commit 8dc826f

Please sign in to comment.