Skip to content

Commit

Permalink
fix conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii committed Nov 17, 2024
1 parent 451dc15 commit eb31d5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prediction_market_agent_tooling/deploy/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class AnsweredEnum(str, Enum):


class AgentTagEnum(str, Enum):
PREDICTIONER = "predictioner"
PREDICTOR = "predictor"
TRADER = "trader"


Expand Down Expand Up @@ -176,7 +176,7 @@ def deploy_local(
Run the agent in the forever cycle every `sleep_time` seconds, until the `run_time` is met.
"""
start_time = time.time()
while run_time is not None and time.time() - start_time > run_time:
while run_time is None or time.time() - start_time < run_time:
self.run(market_type=market_type)
time.sleep(sleep_time)

Expand Down Expand Up @@ -279,7 +279,7 @@ class DeployablePredictionAgent(DeployableAgent):
The agent will process markets and make predictions.
"""

AGENT_TAG: AgentTagEnum = AgentTagEnum.PREDICTIONER
AGENT_TAG: AgentTagEnum = AgentTagEnum.PREDICTOR

bet_on_n_markets_per_run: int = 1

Expand Down

0 comments on commit eb31d5e

Please sign in to comment.