home / skills / openclaw / skills / polymarket-trader
/skills/zbruceli/unifai-trading-suite/skills/polymarket-trader
This skill retrieves trending, crypto, politics, and other Polymarket markets and prices to help you make informed predictions.
npx playbooks add skill openclaw/skills --skill polymarket-traderReview the files below or copy the command above to add this skill to your agents.
---
name: polymarket-trader
description: Query Polymarket prediction markets - trending events, crypto, politics, sports, and search
homepage: https://polymarket.com
user-invocable: true
metadata: {"moltbot":{"emoji":"🔮","requires":{"env":["UNIFAI_AGENT_API_KEY","GOOGLE_API_KEY"]},"primaryEnv":"UNIFAI_AGENT_API_KEY"}}
---
# Polymarket Trader
Query Polymarket, the leading decentralized prediction market on Polygon blockchain.
## About Polymarket
Polymarket is a decentralized prediction market platform where users can trade on the outcomes of real-world events. It operates on the Polygon blockchain using USDC.e for settlements.
## Commands
### Trending Events
```bash
python3 {baseDir}/scripts/polymarket.py trending
```
Get currently trending prediction events.
### Crypto Markets
```bash
python3 {baseDir}/scripts/polymarket.py crypto
```
Get cryptocurrency-related prediction markets.
### Politics Markets
```bash
python3 {baseDir}/scripts/polymarket.py politics
```
Get political prediction markets.
### Search Markets
```bash
python3 {baseDir}/scripts/polymarket.py search "<query>"
```
Search markets by keyword.
### Category Markets
```bash
python3 {baseDir}/scripts/polymarket.py category <name>
```
Get markets by category (trending, new, politics, crypto, tech, culture, sports, world, economy).
## Output Format
Results include:
- Event/market title
- YES/NO prices (probability)
- Trading volume
- Liquidity
- End date
## Categories
| Category | Description |
|----------|-------------|
| trending | Most popular markets |
| new | Recently created markets |
| politics | Political events and elections |
| crypto | Cryptocurrency predictions |
| tech | Technology sector events |
| culture | Entertainment and culture |
| sports | Sports outcomes |
| world | Global events |
| economy | Economic indicators |
## Example Usage
**User**: "What's trending on Polymarket?"
**Assistant**: I'll fetch the trending events from Polymarket.
```bash
python3 {baseDir}/scripts/polymarket.py trending
```
**User**: "Search for Bitcoin markets"
**Assistant**: Let me search Polymarket for Bitcoin-related markets.
```bash
python3 {baseDir}/scripts/polymarket.py search "bitcoin"
```
## Requirements
- `UNIFAI_AGENT_API_KEY` - UnifAI SDK key for Polymarket tools
- `GOOGLE_API_KEY` - Gemini API key for LLM processing
## API Information
- **Data Source**: UnifAI Polymarket tools (toolkit ID: 127)
- **Available Tools**: search, getEventsByCategory, getPrices, getOrderBooks
- **Rate Limits**: UnifAI API rate limits apply
## Notes
- This tool is read-only (trading requires wallet authentication)
- Prices shown as decimals (0.75 = 75% probability)
- Markets settle on Polygon blockchain
- USDC.e used for trading
- Not available in restricted jurisdictions
This skill queries Polymarket, a decentralized prediction market on Polygon, to surface trending events, category-specific markets, and search results. It returns market titles, YES/NO prices as probabilities, trading volume, liquidity, and end dates. The skill is read-only and designed for monitoring markets, research, and idea discovery. Trading is not supported by this tool and requires a wallet and authentication.
The skill calls UnifAI Polymarket tools to fetch events, prices, and order book data. You can request trending, category filters (crypto, politics, sports, etc.), or free-text searches to locate markets. Results are normalized to show probability decimals, volume, liquidity, and settlement details. API rate limits and required environment keys apply.
Can this skill place trades on Polymarket?
No. The skill is read-only and only returns market data. Trading requires a wallet and separate authenticated tools.
What output format does the skill provide?
Results include market title, YES/NO prices as decimal probabilities, trading volume, liquidity, and end date.
What keys or credentials are required?
You must set UNIFAI_AGENT_API_KEY for Polymarket tools and GOOGLE_API_KEY for LLM processing where applicable.