Skip to content

Commit

Permalink
add market count to log
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrtye committed Oct 30, 2024
1 parent 5ad27db commit 74f9373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
tokens_pair[token1] = token2
tokens_pair[token2] = token1

print(f"Found {len(tokens_pair) // 2} markets")

url = "wss://ws-subscriptions-clob.polymarket.com/ws/market"
last_pong = datetime.datetime.now()
Expand Down Expand Up @@ -115,4 +116,3 @@ async def main():

except Exception as e:
print(datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"), repr(e))
print(f"Error occurred on line {e.__traceback__.tb_lineno}")

0 comments on commit 74f9373

Please sign in to comment.