> For the complete documentation index, see [llms.txt](/llms.txt).

# Trade prediction markets

Search markets, fund your predict deposit wallet, and place orders on Polymarket through `mm predict`.

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

- [Quickstart](/agent-wallet/get-started/quickstart/) completed
- USDC on Base (or the chain required by your predict setup) for deposits

## First-time setup[​](#first-time-setup "Direct link to First-time setup")

1. Run one-time setup:  
```  
mm predict setup  
```
2. Fund the predict deposit wallet:  
```  
mm predict deposit --amount <AMOUNT>  
```
3. Confirm balance:  
```  
mm predict balance  
```

## Search and place an order[​](#search-and-place-an-order "Direct link to Search and place an order")

1. Search markets:  
```  
mm predict markets search "<QUERY>" --limit 5  
```
2. Preview a quote:  
```  
mm predict quote --token-id <TOKEN_ID> --side buy --size <SIZE> [--limit-price <PRICE>]  
```
3. Place the order:  
```  
mm predict place --token-id <TOKEN_ID> --side buy --size <SIZE> [--limit-price <PRICE>]  
```
4. View open orders and positions:  
```  
mm predict orders  
mm predict positions  
```

## Common pitfalls[​](#common-pitfalls "Direct link to Common pitfalls")

One-time setup is required

Polymarket trading routes through a dedicated predict deposit wallet. Run `mm predict setup`followed by `mm predict deposit --amount <N>` before placing your first order. Skipping setup can produce `JsonRpcError: execution reverted` on deposit.

## Related commands[​](#related-commands "Direct link to Related commands")

See [mm predict](/agent-wallet/reference/commands/#mm-predict) in the commands reference.
