Skip to content

Commit

Permalink
more refined event filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnicita committed Aug 5, 2024
1 parent 7ff336d commit a40ca33
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion connectors/polymarket.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,12 @@ def filter_events_for_trading(
) -> "list[SimpleEvent]":
tradeable_events = []
for event in events:
if event.active and not event.restricted:
if (
event.active
and not event.restricted
and not event.archived
and not event.closed
):
tradeable_events.append(event)
return tradeable_events

Expand Down

0 comments on commit a40ca33

Please sign in to comment.