polymarket-autotrade

Polymarket prediction market CLI - Browse markets, check prices, execute trades, and manage portfolio.

3,891 stars

Best use case

polymarket-autotrade is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Polymarket prediction market CLI - Browse markets, check prices, execute trades, and manage portfolio.

Teams using polymarket-autotrade should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/polymarket-autotrade/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/aplanckfish/polymarket-autotrade/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/polymarket-autotrade/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How polymarket-autotrade Compares

Feature / Agentpolymarket-autotradeStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Polymarket prediction market CLI - Browse markets, check prices, execute trades, and manage portfolio.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# polymarket

Polymarket prediction market CLI - Browse & Trade.

## Setup

```bash
# Install dependencies
pip install -r requirements.txt
```

### Configure credentials

**Method 1: Via `openclaw.json` (Recommended)**

Add to your `~/.openclaw/openclaw.json` under `skills.entries`:

```json
{
  "skills": {
    "entries": {
      "polymarket": {
        "env": {
          "POLYMARKET_PRIVATE_KEY": "your_wallet_private_key",
          "POLYMARKET_PROXY_ADDRESS": "0x_your_proxy_wallet_address"
        }
      }
    }
  }
}
```

Or use the shorthand `apiKey` field for the primary key:

```json
{
  "skills": {
    "entries": {
      "polymarket": {
        "apiKey": "your_wallet_private_key",
        "env": {
          "POLYMARKET_PROXY_ADDRESS": "0x_your_proxy_wallet_address"
        }
      }
    }
  }
}
```

**Method 2: Via config file (Legacy)**

Create `~/.openclaw/credentials/polymarket.json`:

```json
{
  "private_key": "your_wallet_private_key",
  "proxy_address": "0x_your_proxy_wallet_address"
}
```

> The skill checks env vars first, then falls back to the config file.

**Credential details:**
- `POLYMARKET_PRIVATE_KEY` / `private_key` — Your wallet private key (from MetaMask or similar)
- `POLYMARKET_PROXY_ADDRESS` / `proxy_address` — Your Polymarket proxy wallet address (from polymarket.com/settings)
- API credentials (`apiKey`, `secret`, `passphrase`) are **auto-generated** on first trade and cached locally.

### Security Warning

- **Strongly recommended**: Use a **dedicated wallet with limited funds**, NOT your main wallet.
- The private key is **only used locally** for signing transactions via `py-clob-client`. It is **never transmitted** to any endpoint other than `clob.polymarket.com` (Polymarket's official CLOB API).
- If using config file method: `chmod 600 ~/.openclaw/credentials/polymarket.json`

## Commands

### Browse Markets
```bash
polymarket trending                     # Homepage (featured order)
polymarket trending geopolitics          # By category
polymarket trending crypto
polymarket trending sports
polymarket trending politics
polymarket trending business
polymarket trending entertainment
polymarket trending tech
```

### Event Details
```bash
polymarket detail us-strikes-iran-by
polymarket event us-strikes-iran-by     # Simple overview
```

### Trading
```bash
# Check price
polymarket price <token_id>

# Trade (requires credentials)
polymarket buy <token_id> <amount>     # Buy with USDC
polymarket sell <token_id> <amount>    # Sell USDC worth

# Example
polymarket buy 40081275558852222228080198821361202017557872256707631666334039001378518619916 2
```

### Portfolio
```bash
polymarket position                     # From config wallet
polymarket position <wallet_address>
polymarket balance                    # From config wallet
polymarket balance <wallet_address>
```

## Natural Language Triggers

### Browse Markets
> "Polymarket 有什么热门市场"
> "显示当前趋势"
> "查看政治预测市场"
> "加密货币市场怎么样"
> "体育博彩市场"
> "商业/经济类预测市场"
> "娱乐新闻相关"
> "What's trending on Polymarket"
> "Show me popular prediction markets"

### Event Details
> "2028共和党候选人详情"
> "伊朗战争市场详细信息"
> "J.D. Vance 当前概率多少"
> "这个市场什么意思"
> "Show me details about [event name]"
> "What are the odds for [outcome]"
> "Explain this market"

### Trading
> "买入 J.D. Vance YES"
> "买 2 美元"
> "做多比特币"
> "下注 5 美元"
> "Buy [token/outcome]"
> "I want to buy [amount] USDC of [outcome]"
> "Place a bet on [outcome]"
> "Long [market]"

### Portfolio
> "我的仓位"
> "我的持仓"
> "还剩多少钱"
> "当前余额"
> "My positions"
> "Show me my balance"
> "How much USDC do I have"

## Features

- **Env-first credentials** - Reads `POLYMARKET_PRIVATE_KEY` / `POLYMARKET_PROXY_ADDRESS` from env, falls back to config file
- **Auto API credentials** - Generated on first trade and cached to `~/.openclaw/credentials/polymarket_api.json`
- **Default wallet** - Uses `proxy_address` from config for position/balance commands
- **Local-only signing** - Private key never leaves your machine; only signed transactions are sent to Polymarket CLOB API

## APIs

- Events: https://gamma-api.polymarket.com/events/pagination
- Positions: https://data-api.polymarket.com/positions
- Trading: https://clob.polymarket.com

Related Skills

polymarket-sports-edge

3891
from openclaw/skills

Find odds divergence between sportsbook consensus and Polymarket sports markets, then trade the gap.

Finance & Trading

polymarket-openclaw-trader

3891
from openclaw/skills

Reusable Polymarket + OpenClaw trading operations skill for any workspace. Use when the user needs to set up, run, tune, monitor, and deploy an automated Polymarket trading project (paper/live), including env configuration, risk controls, reporting, and dashboard operations.

Trading Automation

polymarket-btc-momentum

3891
from openclaw/skills

Trades Polymarket Bitcoin 5-minute sprint markets using real-time BTC price momentum from Binance. Buys YES when BTC momentum is bullish, NO when bearish.

polymarket-trade

3891
from openclaw/skills

Trade on Polymarket prediction markets on Polygon. Supports browsing markets, checking wallet/CLOB balance, and buying or selling YES/NO shares with safety gates. Wallet: WDK vault (~/.aurehub/.wdk_vault). Config: ~/.aurehub/polymarket.yaml. Triggers: buy YES, buy NO, sell shares, browse markets, check Polymarket balance, Polymarket trade, prediction market, what are the odds, redeem winnings, claim resolved positions.

mia-polymarket-trader

3891
from openclaw/skills

AI agent for automated prediction market trading on Polymarket

polymarket-tracker

3891
from openclaw/skills

Track top Polymarket markets by trading volume. Shows market name, Yes/No trading volumes, and current odds. Use when user asks about Polymarket trends, hot markets, or wants to find high-volume trading opportunities. Requires payment via skillpay.me (0.001 USDT per call).

polymarket-simmer-fastloop

3891
from openclaw/skills

Trade Polymarket BTC/ETH/SOL 5/15-minute fast markets with momentum and order book filters.

polymarket-simmer-fastloop-sync-pulse

3891
from openclaw/skills

Trade Polymarket BTC/ETH/SOL 5-minute fast markets using a zero-delay Triple-Trigger strategy. Combines Binance momentum, NOFX OI/Netflow (free public API), and L2 Wall detection to choose between Trend Following and Mean Reversion. Pre-Caches market IDs to bypass the Simmer API blackout at market open.

polymarket-agent

3891
from openclaw/skills

Autonomous prediction market agent - analyzes markets, researches news, and identifies trading opportunities

polymarket-alpha-suite

3891
from openclaw/skills

6 institutional-grade Polymarket trading tools. NegRisk arbitrage (100% win rate), latency arb, BTC scalping, alpha scanner, universe scanner, edge detection. Battle-tested on 8,347 signals. No Python required.

polymarket-weather-trader

3891
from openclaw/skills

Trade Polymarket weather markets using NOAA (US) and Open-Meteo (international) forecasts via Simmer API. Inspired by gopfan2's $2M+ strategy. Use when user wants to trade temperature markets, automate weather bets, check forecasts, or run gopfan2-style trading.

polymarket-wallet-xray

3891
from openclaw/skills

X-ray any Polymarket wallet — skill level, entry quality, bot detection, and edge analysis. Queries Polymarket's public APIs, no authentication needed. Inspired by @thejayden's "Autopsy of a Polymarket Whale" analysis.