# Prediction Markets

> Trade real-world event outcomes on Polymarket from your agent.

Source: https://www.boba.xyz/docs/agents/core-capabilities/prediction-markets

Your agent trades prediction markets on [Polymarket](https://polymarket.com). You buy and sell outcome shares priced from $0 to $1. Each share pays $1 if its outcome happens.

> **Warning:** Prediction markets involve real money. Research the event, check liquidity, and only size positions you can afford to lose.

## How it works

- An **event** has one or more **markets** (for example, one per candidate)
- Each market has outcome shares, usually **Yes** and **No**
- A share's price is the market's estimated probability
- If the outcome happens, each share pays **$1**. Otherwise it's worth $0.

**Example:** Yes on "Will BTC hit $150k by June?" trades at $0.35 (a 35% chance). You buy 100 Yes shares for $35. If BTC hits $150k, they pay $100 (a $65 profit). If not, you lose the $35. You can also sell before the event resolves, to lock in a profit or cut a loss.

| Share price | Probability | 100 shares cost | Payout if right | Profit |
| --- | --- | --- | --- | --- |
| $0.10 | 10% | $10 | $100 | +$90 |
| $0.25 | 25% | $25 | $100 | +$75 |
| $0.50 | 50% | $50 | $100 | +$50 |
| $0.75 | 75% | $75 | $100 | +$25 |
| $0.90 | 90% | $90 | $100 | +$10 |

## First-time setup

Before your first trade, approve your agent wallet to trade on Polymarket. This is a one-time step.

| Prompt | What happens |
| --- | --- |
| "Check my Polymarket approvals" | Checks whether your wallet is approved |
| "Approve Polymarket trading" | Approves buying and selling |

## Example prompts

| Prompt | What happens |
| --- | --- |
| "Search for crypto prediction markets" | Finds markets by category or keyword |
| "Show me the BTC $150k market" | Prices, order book and price history |
| "Who are the top holders of this market?" | Top-holder data |
| "Buy $20 of Yes shares" | Market buy |
| "Place a limit buy at $0.35" | Limit order at a 35% price |
| "Show my Polymarket positions" | Positions, PnL and open orders |
| "Cancel my open orders" | Cancels resting orders |
| "Show my Polymarket trade history" | Your fills |
| "Show me this trader's positions" | Research another trader's profile |
