polymarket-pro
v1.0.0Use the official Polymarket 命令行工具 to browse markets, trade on CLOB, manage positions, and analyze on-chAIn data. Features include market 搜索, order book analysis, limit/market orders, position management, and advanced CTF operations.
运行时依赖
安装命令
点击复制技能文档
Polymarket 命令行工具 技能
This 技能 enables you to interact with Polymarket prediction markets using the official polymarket 命令行工具 工具. Unlike Polyclaw (which manages autonomous trading), this 技能 gives you direct, granular control over trading, re搜索, and portfolio management.
安装ation Quick 安装 (macOS/Linux) brew tap Polymarket/polymarket-命令行工具 https://github.com/Polymarket/polymarket-命令行工具 brew 安装 polymarket
Shell Script (All 平台s) curl -sSL https://raw.githubusercontent.com/Polymarket/polymarket-命令行工具/mAIn/安装.sh | sh
验证 安装ation polymarket --version polymarket --help
Wallet 设置up Three Ways to Provide Private Key 命令行工具 flag: --private-key 0xabc... 环境 variable: 导出 POLYMARKET_PRIVATE_KEY=0xabc... Config file: ~/.config/polymarket/config.json 创建 New Wallet # 生成 new wallet (saves to config) polymarket wallet 创建
# Or force overwrite existing polymarket wallet 创建 --force
# 导入 existing private key polymarket wallet 导入 0xabc123...
# 检查 wallet 添加ress polymarket wallet 添加ress
# Full wallet 信息 polymarket wallet show
应用rovals (Required Before Trading) # 检查 current 应用roval 状态 polymarket 应用rove 检查 polymarket 应用rove 检查 0xYOUR_添加RESS
# 设置 应用rovals (发送s 6 on-chAIn txs, needs MATIC for gas) polymarket 应用rove 设置
输出 格式化s
Every command supports -o json or -o table (default):
# Human-readable table polymarket markets 列出 --limit 3
# JSON for scripts/代理s polymarket -o json markets 列出 --limit 3
# Pipe to jq for specific fields polymarket -o json markets 搜索 "bitcoin" | jq '.[].question'
Market Re搜索 Browse Markets # 列出 markets with 过滤器s polymarket markets 列出 --limit 10 polymarket markets 列出 --active true --order volume_num polymarket markets 列出 --closed false --limit 50 --off设置 25
# 获取 specific market by ID or slug polymarket markets 获取 12345 polymarket markets 获取 will-trump-win-the-2024-election
# 搜索 markets polymarket markets 搜索 "bitcoin" --limit 5 polymarket markets 搜索 "election" --limit 10
事件 (Grouped Markets) # 列出 事件 polymarket 事件 列出 --limit 10 polymarket 事件 列出 --tag politics --active true
# 获取 specific event polymarket 事件 获取 500
# 获取 tags for event polymarket 事件 tags 500
Tags & Series # Browse tags polymarket tags 列出 polymarket tags 获取 politics polymarket tags related politics
# Series (recurring 事件) polymarket series 列出 --limit 10 polymarket series 获取 42
Order Book Analysis (No Wallet Needed) # 检查 price polymarket clob price 令牌_ID --side buy polymarket clob midpoint 令牌_ID polymarket clob spread 令牌_ID
# Batch prices polymarket clob batch-prices "令牌1,令牌2" --side buy polymarket clob midpoints "令牌1,令牌2"
# Order book polymarket clob book 令牌_ID
# Last trade polymarket clob last-trade 令牌_ID
# Price 历史 polymarket clob price-历史 令牌_ID --interval 1d --fidelity 30
# Market metadata polymarket clob tick-size 令牌_ID polymarket clob fee-rate 令牌_ID polymarket clob neg-risk 令牌_ID
Price 历史 intervals: 1m, 1h, 6h, 1d, 1w, max
Trading (CLOB) Place Orders # Limit order (buy 10 分享s at $0.50) polymarket clob 创建-order \ --令牌 令牌_ID \ --side buy --price 0.50 --size 10
# Market order (buy $5 worth) polymarket clob market-order \ --令牌 令牌_ID \ --side buy --amount 5
# Post multiple orders at once polymarket clob post-orders \ --令牌s "令牌1,令牌2" \ --side buy \ --prices "0.40,0.60" \ --sizes "10,10"
# Order types: GTC (default), FOK, GTD, FAK # 添加 --post-only for limit orders
Manage Orders # View your orders polymarket clob orders polymarket clob orders --market 0xCONDITION...
# 获取 specific order polymarket clob order ORDER_ID
# Cancel orders polymarket clob cancel ORDER_ID polymarket clob cancel-orders "ORDER1,ORDER2" polymarket clob cancel-market --market 0xCONDITION... polymarket clob cancel-all
检查 Balance & Trades # Collateral balance (USDC) polymarket clob balance --as设置-type collateral
# Conditional 令牌 balance polymarket clob balance --as设置-type conditional --令牌 令牌_ID
# 更新 balance 缓存 polymarket clob 更新-balance --as设置-type collateral
# Your trades polymarket clob trades
# Order detAIls with scoring polymarket clob order-scoring ORDER_ID
On-ChAIn Data Portfolio & Positions # Current positions polymarket data positions 0xWALLET_添加RESS polymarket data closed-positions 0xWALLET_添加RESS
# Portfolio value polymarket data value 0xWALLET_添加RESS
# Trade 历史 polymarket data trades 0xWALLET_添加RESS --limit 50
# Activity summary polymarket data activity 0xWALLET_添加RESS
Market Data # 令牌 holders polymarket data holders 0xCONDITION_ID
# Open interest polymarket data open-interest 0xCONDITION_ID
# Volume by event polymarket data volume EVENT_ID
# Leaderboards polymarket data leaderboard --period month --order-by pnl --limit 10 polymarket data 构建器-leaderboard --period week polymarket data 构建器-v