Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default bet size for various deployed agents to '1' #433

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions prediction_market_agent/agents/known_outcome_agent/deploy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from prediction_market_agent_tooling.deploy.agent import DeployableTraderAgent
from prediction_market_agent_tooling.deploy.betting_strategy import (
MaxAccuracyBettingStrategy,
)
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import AgentMarket
from prediction_market_agent_tooling.markets.data_models import ProbabilisticAnswer
Expand All @@ -15,6 +18,7 @@
class DeployableKnownOutcomeAgent(DeployableTraderAgent):
model = "gpt-4-1106-preview"
min_liquidity = 5
strategy = MaxAccuracyBettingStrategy(bet_amount=1)

def load(self) -> None:
self.markets_with_known_outcomes: dict[str, Result] = {}
Expand Down
6 changes: 5 additions & 1 deletion prediction_market_agent/agents/prophet_agent/deploy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from prediction_market_agent_tooling.deploy.agent import DeployableTraderAgent
from prediction_market_agent_tooling.deploy.betting_strategy import KellyBettingStrategy
from prediction_market_agent_tooling.deploy.betting_strategy import (
KellyBettingStrategy,
MaxAccuracyBettingStrategy,
)
from prediction_market_agent_tooling.loggers import logger
from prediction_market_agent_tooling.markets.agent_market import AgentMarket
from prediction_market_agent_tooling.markets.data_models import ProbabilisticAnswer
Expand All @@ -18,6 +21,7 @@
class DeployableTraderAgentER(DeployableTraderAgent):
agent: PredictionProphetAgent | OlasAgent
bet_on_n_markets_per_run = 1
strategy = MaxAccuracyBettingStrategy(bet_amount=1)

@property
def model(self) -> str | None:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from prediction_market_agent_tooling.deploy.agent import DeployableTraderAgent
from prediction_market_agent_tooling.deploy.betting_strategy import KellyBettingStrategy
from prediction_market_agent_tooling.deploy.betting_strategy import (
KellyBettingStrategy,
MaxAccuracyBettingStrategy,
)
from prediction_market_agent_tooling.markets.agent_market import AgentMarket
from prediction_market_agent_tooling.markets.data_models import ProbabilisticAnswer
from prediction_market_agent_tooling.markets.markets import MarketType
Expand All @@ -15,6 +18,7 @@ class DeployableThinkThoroughlyAgentBase(DeployableTraderAgent):
agent_class: type[ThinkThoroughlyBase]
model: str
bet_on_n_markets_per_run = 1
strategy = MaxAccuracyBettingStrategy(bet_amount=1)

def load(self) -> None:
self.agent = self.agent_class(
Expand Down
Loading