Overview
TheDeployableCoinFlipAgent is a simple agent that makes random binary predictions using a coin flip mechanism. This agent serves as a baseline for testing and comparison purposes.
Class: DeployableCoinFlipAgent
A basic trading agent that randomly predicts market outcomes with 50/50 probability.Inheritance
Methods
verify_market
The type of prediction market
The market to verify
Always returns
Trueanswer_binary_market
The market to predict on
A probabilistic answer with:
p_yes: 0.0 or 1.0 (randomly chosen)confidence: 0.5reasoning: “I flipped a coin to decide.”
Class: DeployableCoinFlipAgentByHighestLiquidity
An enhanced version of the coin flip agent that targets high-liquidity markets.Inheritance
Configuration Properties
Sorts markets by liquidity, targeting the most liquid markets first
Number of markets to trade on per execution run
Minimum time interval between trades on the same market (14 days)
Usage Examples
Basic CoinFlip Agent
High Liquidity CoinFlip Agent
Custom Configuration
Implementation Details
Random Selection Mechanism
The agent uses Python’srandom.choice() to make binary decisions:
Source Location
Use Cases
- Baseline Testing: Compare more sophisticated agents against random predictions
- Market Activity: Generate trading activity for testing market infrastructure
- Control Group: Use as a control in agent performance studies
- Educational: Simple example for understanding the agent architecture
Related
- AdvancedAgent - Evidence-based prediction agent
- DeployableTraderAgent - Base class for trading agents
- AgentMarket - Market interface