From d5766e5f3709b8fdcf65a93c522824e7946be9aa Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Mon, 23 Sep 2024 14:19:03 +0200 Subject: [PATCH] More question filters for responses (#426) --- .../markets/omen/omen_subgraph_handler.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py b/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py index 5eff3f10..6d583cfa 100644 --- a/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py +++ b/prediction_market_agent_tooling/markets/omen/omen_subgraph_handler.py @@ -719,6 +719,9 @@ def get_responses( question_id: HexBytes | None = None, question_claimed: bool | None = None, question_finalized_before: datetime | None = None, + question_finalized_after: datetime | None = None, + question_current_answer_before: datetime | None = None, + question_id_in: list[HexBytes] | None = None, ) -> list[RealityResponse]: where_stms: dict[str, t.Any] = {} @@ -729,6 +732,9 @@ def get_responses( question_id=question_id, claimed=question_claimed, finalized_before=question_finalized_before, + finalized_after=question_finalized_after, + current_answer_before=question_current_answer_before, + question_id_in=question_id_in, ) responses = self.realityeth_subgraph.Query.responses(where=where_stms)