搜索

PythonReactSEOPDF
OpenClaw

polymarket

Browse, trade, and manage positions on Polymarket prediction markets via the polymarket CLI. Use when: user asks about prediction market odds, wants to search/browse markets, check prices, place/cancel orders, view portfolio, or interact with Polymarket CLOB. Supports JSON output for programmatic use. NOT for: general crypto trading (use other tools), non-Polymarket prediction platforms.

guzus0 来源安装数☆ 0 仓库 Starsv1.0.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install guzus/mgnlia-polymarket

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Polymarket CLI Skill

Trade prediction markets on Polymarket from the terminal. All commands use the polymarket binary.

Prerequisites

Binary must be installed. If missing:

curl -sSL https://raw.githubusercontent.com/Polymarket/polymarket-cli/main/install.sh | sh
# Or build from source:
# cargo install --path /tmp/polymarket-cli

Authentication

Most read commands work without a wallet. Trading requires setup:

polymarket setup                    # Interactive wizard
# Or manually:
polymarket wallet create            # New wallet
polymarket wallet import 0xKEY...   # Import existing
polymarket approve set              # Approve contracts (needs MATIC)

Config stored at ~/.config/polymarket/config.json.

Output

Always use -o json when calling from scripts/agents for machine-readable output:

polymarket -o json markets list --limit 5
polymarket -o json clob midpoint TOKEN_ID

Common Workflows

Browse & Research
# Search markets
polymarket markets search "bitcoin" --limit 10
polymarket -o json markets search "trump" --limit 5

# Get specific market
polymarket markets get MARKET_ID_OR_SLUG

# List by category
polymarket events list --tag politics --active true --limit 20
polymarket events list --tag crypto --limit 10

# Available tags
polymarket tags list
Check Prices & Orderbook
# Price info (needs token ID from market data)
polymarket clob price TOKEN_ID --side buy
polymarket clob midpoint TOKEN_ID
polymarket clob spread TOKEN_ID

# Full orderbook
polymarket clob book TOKEN_ID

# Price history
polymarket clob price-history TOKEN_ID --interval 1d --fidelity 30
# Intervals: 1m, 1h, 6h, 1d, 1w, max

# Batch queries (comma-separated)
polymarket clob midpoints "TOKEN1,TOKEN2"
Trading (Requires Wallet)
# Limit order: buy 10 shares at $0.45
polymarket clob create-order --token TOKEN_ID --side buy --price 0.45 --size 10

# Market order: buy $5 worth
polymarket clob mar...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/guzus/mgnlia-polymarket
Version
1.0.0
Commit
6eb2fed047499c7145e5f9bfe574666a6ef48538
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

Polymarket Skill

Interact with Polymarket prediction markets via the official polymarket CLI.

Installation

bash skills/polymarket/scripts/install.sh

This will:

  1. Try installing pre-built binary
  2. Fall back to building from source if GLIBC incompatible
  3. Install to ~/.cargo/bin/polymarket

Quick Start

# Search markets (no wallet needed)
polymarket -o json markets search "bitcoin" --limit 5

# Get specific market
polymarket markets get will-trump-win-2024

# Check price
polymarket -o json clob midpoint TOKEN_ID

# See SKILL.md for full documentation
# See EXAMPLES.md for common patterns

Files

  • SKILL.md — Complete reference for OpenClaw agents
  • EXAMPLES.md — Common usage patterns and scripts
  • scripts/install.sh — Installation script
  • scripts/search.sh — Search markets helper
  • scripts/get-market.sh — Get market details
  • scripts/check-price.sh — Check token price

Requirements

  • Rust (auto-installed by install.sh if missing)
  • For trading: MATIC on Polygon for gas

References

来源内容

SKILL.md
# Polymarket CLI Skill

Trade prediction markets on Polymarket from the terminal. All commands use the `polymarket` binary.

## Prerequisites

Binary must be installed. If missing:
```bash
curl -sSL https://raw.githubusercontent.com/Polymarket/polymarket-cli/main/install.sh | sh
# Or build from source:
# cargo install --path /tmp/polymarket-cli
```

## Authentication

Most read commands work without a wallet. Trading requires setup:
```bash
polymarket setup                    # Interactive wizard
# Or manually:
polymarket wallet create            # New wallet
polymarket wallet import 0xKEY...   # Import existing
polymarket approve set              # Approve contracts (needs MATIC)
```

Config stored at `~/.config/polymarket/config.json`.

## Output

**Always use `-o json` when calling from scripts/agents** for machine-readable output:
```bash
polymarket -o json markets list --limit 5
polymarket -o json clob midpoint TOKEN_ID
```

## Common Workflows

### Browse & Research

```bash
# Search markets
polymarket markets search "bitcoin" --limit 10
polymarket -o json markets search "trump" --limit 5

# Get specific market
polymarket markets get MARKET_ID_OR_SLUG

# List by category
polymarket events list --tag politics --active true --limit 20
polymarket events list --tag crypto --limit 10

# Available tags
polymarket tags list
```

### Check Prices & Orderbook

```bash
# Price info (needs token ID from market data)
polymarket clob price TOKEN_ID --side buy
polymarket clob midpoint TOKEN_ID
polymarket clob spread TOKEN_ID

# Full orderbook
polymarket clob book TOKEN_ID

# Price history
polymarket clob price-history TOKEN_ID --interval 1d --fidelity 30
# Intervals: 1m, 1h, 6h, 1d, 1w, max

# Batch queries (comma-separated)
polymarket clob midpoints "TOKEN1,TOKEN2"
```

### Trading (Requires Wallet)

```bash
# Limit order: buy 10 shares at $0.45
polymarket clob create-order --token TOKEN_ID --side buy --price 0.45 --size 10

# Market order: buy $5 worth
polymarket clob mar...
README
# Polymarket Skill

Interact with Polymarket prediction markets via the official `polymarket` CLI.

## Installation

```bash
bash skills/polymarket/scripts/install.sh
```

This will:
1. Try installing pre-built binary
2. Fall back to building from source if GLIBC incompatible
3. Install to `~/.cargo/bin/polymarket`

## Quick Start

```bash
# Search markets (no wallet needed)
polymarket -o json markets search "bitcoin" --limit 5

# Get specific market
polymarket markets get will-trump-win-2024

# Check price
polymarket -o json clob midpoint TOKEN_ID

# See SKILL.md for full documentation
# See EXAMPLES.md for common patterns
```

## Files

- `SKILL.md` — Complete reference for OpenClaw agents
- `EXAMPLES.md` — Common usage patterns and scripts
- `scripts/install.sh` — Installation script
- `scripts/search.sh` — Search markets helper
- `scripts/get-market.sh` — Get market details
- `scripts/check-price.sh` — Check token price

## Requirements

- Rust (auto-installed by install.sh if missing)
- For trading: MATIC on Polygon for gas

## References

- [polymarket-cli GitHub](https://github.com/Polymarket/polymarket-cli)
- [Polymarket Docs](https://docs.polymarket.com)

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance