Skip to main content

Overview

The Prophet agent family uses the PredictionProphet library to perform sophisticated market research and generate evidence-based predictions. These agents represent production-quality implementations with various model configurations and betting strategies.

Base Classes

DeployableTraderAgentER

Base class for Prophet agents supporting binary markets.
PredictionProphetAgent | OlasAgent
The underlying prediction agent instance
int
default:"2"
Number of markets to trade on per execution run

Methods

answer_binary_market
Generates predictions using the PredictionProphet agent.

DeployableTraderAgentERCategorical

Base class for categorical market predictions.
answer_categorical_market

DeployableTraderAgentERScalar

Base class for scalar market predictions.
answer_scalar_market

Production Agents

DeployablePredictionProphetGPT4oAgent

Primary production agent using GPT-4o with Kelly criterion betting.
int
default:"4"
Trades on 4 markets per run for increased activity

Configuration

  • Research Model: gpt-4o-2024-08-06 (temperature 0.7)
  • Prediction Model: gpt-4o-2024-08-06 (temperature 0.0)
  • Betting Strategy: FullBinaryKellyBettingStrategy
    • Min bet: $1
    • Max bet: $5
    • Max price impact: 0.7

Usage

DeployablePredictionProphetGPT4oAgent_B

Optimized version with reduced internet searches for lower Tavily API costs.

Key Differences

  • subqueries_limit: 3 (reduced from default)
  • min_scraped_sites: 3 (reduced from default)
  • Same model configuration as base GPT-4o agent

DeployablePredictionProphetGPT4oAgent_C

Experimental agent testing the impact of disabling take-profit functionality.
bool
default:"False"
Disabled to test if larger final payouts increase profits

Model Variants

OpenAI Models

GPT-4o-mini

GPT-4 Turbo

O-series Models

o1-2024-12-17
o3-mini

Anthropic Models

Claude 3.5 Sonnet

Claude 3.5 Haiku

OpenRouter Models

Gemini 2.0 Flash

DeepSeek Chat

Categorical Markets

DeployablePredictionProphetGPT4oAgentCategorical

Specialized agent for categorical prediction markets.

Betting Strategy (Omen Markets)

  • Strategy: FullCategoricalKellyBettingStrategy
  • Max position: 0.01to0.01 to 0.75
  • Max price impact: 0.068
  • allow_multiple_bets: False
  • allow_shorting: False
  • multicategorical: False

Usage

Scalar Markets

DeployablePredictionProphetGPT4oAgentScalar

Agent for scalar range markets.

Special Configuration

  • Uses TopNOpenAINModel with n=5
  • Temperature: 0.7 for prediction agent
  • Generates multiple predictions and aggregates results

News-Based Trading

DeployablePredictionProphetGPT4oAgentNewMarketTrader

Agent that trades on new markets and re-evaluates positions when relevant news is published.
DatetimeUTC
Only trades on markets created after this date
SortBy
default:"SortBy.NEWEST"
Sorts markets by creation date to target new markets
MarketLifetimeProportionalInterval
Re-trades up to 4 times per market based on news relevance

News Detection Logic

Embedding Models

DeployableOlasEmbeddingOAAgent

Agent using the Olas embedding model for market analysis.
  • embedding_model: EmbeddingModel.openai
  • Betting: FullCategoricalKellyBettingStrategy
  • Max price impact: 0.7333

PredictionProphet Configuration

All agents initialize PredictionProphetAgent with:
Agent
Agent for web research and information gathering
  • Temperature: 0.7 (creative search)
Agent
Agent for making final predictions
  • Temperature: 0.0 (deterministic)
bool
default:"True"
Include reasoning in prediction responses
Logger
Logger instance for tracking agent activity

Optional Parameters

int
default:"3"
Maximum number of research subqueries (used in optimized agents)
int
default:"3"
Minimum number of websites to scrape for research

Advanced Usage

Custom Prophet Agent

Loading Existing Agent

Required API Keys

str
Required for OpenAI model variants
str
Required for Claude model variants
str
Required for Gemini, DeepSeek, and other OpenRouter models
str
Required for web research functionality

Source Location