Documentation Index
Fetch the complete documentation index at: https://mintlify.com/gnosis/prediction-market-agent/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Omen (also known as Presagio) is a decentralized prediction market platform on Gnosis Chain. The Omen market API provides access to binary and categorical prediction markets with full on-chain trading capabilities.MarketType Enum
Market Class
OmenAgentMarket
TheOmenAgentMarket class extends AgentMarket and provides Omen-specific functionality.
Core Methods
Get Markets
Retrieve available prediction markets from Omen.Maximum number of markets to retrieve
Filter markets by status (OPEN, RESOLVED, etc.)
Sort order (CLOSING_SOONEST, NEWEST, HIGHEST_LIQUIDITY, etc.)
List of market objects matching the query criteria
Get Binary Market
Retrieve a specific binary market by ID.Market address (checksummed Ethereum address)
Market object containing question, probabilities, and trading information
Buy Tokens
Purchase outcome tokens for a market.Outcome to bet on (“Yes” or “No” for binary markets)
Amount to spend on tokens in USD
Sell Tokens
Sell outcome tokens from a market position.Outcome tokens to sell
Number of outcome tokens to sell
Get Token Balance
Check token balance for a specific outcome.User’s Ethereum address
Outcome to check balance for
Number of outcome tokens held
Get Positions
Retrieve all user positions across markets.User’s Ethereum address
Only return positions in open markets
Minimum position size to include
List of user positions with market details and token amounts
Get Trade Balance
Get available trading balance.API keys containing wallet address
Available balance for trading in USD
Market Data Model
Market Properties
Market address (Ethereum checksummed address)
Market question text
Additional market description or resolution criteria
Available outcomes (e.g., [“Yes”, “No”] for binary markets)
Current probability of “Yes” outcome (0.0 to 1.0)
Alias for p_yes
Current probability of “No” outcome (1 - p_yes)
Total trading volume
When the market closes for trading
When the market was created
Direct link to the market on Omen
Whether the market is currently open for trading
Final resolution outcome (if resolved)
Omen-Specific Features
Market Creation
Create new prediction markets on Omen.Outcomes Constants
Subgraph Handler
Access raw Omen market data via GraphQL.Real-World Examples
Arbitrage Agent
The arbitrage agent finds correlated markets and places mirror bets.Microchain Agent
The microchain agent uses function calling to trade on Omen markets.Replication Agent
The replication agent copies markets from other platforms to Omen.Network Details
- Blockchain: Gnosis Chain (formerly xDai)
- Native Token: xDai (stablecoin pegged to USD)
- Collateral Tokens: xDai, sDAI, and other ERC-20 tokens
- Website: https://omen.eth.limo
- Subgraph: Omen uses The Graph protocol for market data