Skip to content

Commit

Permalink
pick only 1 bet
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Mar 26, 2024
1 parent 5566929 commit c0421a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions prediction_market_agent/agents/known_outcome_agent/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ def pick_markets(self, markets: list[AgentMarket]) -> list[AgentMarket]:
picked_markets.append(market)
self.markets_with_known_outcomes[market.id] = answer.result

# Return as soon as we have picked a market, because otherwise it will take too long and we will run out of time in GCP Function (540s timeout)
# TODO: After PMAT is updated in this repository, we can return `None` in `answer_binary_market` method and PMAT won't place the bet.
# So we can move this logic out of `pick_markets` into `answer_binary_market`, and simply process as many bets as we have time for.
return picked_markets

else:
print(
f"Skipping market {market.id=} {market.question=}, because it is already saturated."
Expand Down

0 comments on commit c0421a9

Please sign in to comment.