Nash0 Polymarket CLI — Nash0 多市场 CLI
v0.1.0使用Polymarket CLI(`polymarket`)浏览市场,检查订单簿和价格,查看公众钱包数据,审查账户状态,并下单或取消订单。当用户要求从终端与Polymarket交互时使用,特别是:(1)列出、搜索和获取市场或事件,(2)读取CLOB订单簿、价差、中点和价格历史,(3)检查仓位、交易量、持有者或排行榜,(4)审查批准或账户状态,或者(5)通过`clob`命令进行交易。绝不运行钱包管理命令或读取本地私钥配置文件。
运行时依赖
安装命令
点击复制技能文档
Polymarket 命令行工具
Use the polymarket binary directly. Prefer read-only commands by default, use -o json for structured 输出, and treat any trading or on-chAIn action as sensitive.
Safety rules
Never read ~/.config/polymarket/config.json or any file that may contAIn private keys.
Never 运行 wallet-management commands yourself. The user must 运行 these directly:
polymarket wallet 创建 polymarket wallet 导入 polymarket wallet show polymarket wallet re设置 polymarket wallet 添加ress polymarket 设置up
Ask before 运行ning any command that can:
place, modify, or cancel orders 应用rove contracts split, merge, redeem, or bridge as设置s 创建/删除 API keys or 通知 write private keys or config
Safe to 运行 without extra confirmation:
markets, 事件, tags, series, comments, 性能分析s, sports read-only clob commands like book, price, midpoint, spread, price-历史, market public data commands for wallets, markets, holders, volume, leaderboards 健康/version/help commands
Read-only 认证d commands are allowed only when they do not reveal secrets and do not modify 状态.
Quick 启动
检查 avAIlability first:
polymarket --help polymarket --version
Use JSON for 代理 work:
polymarket -o json markets 列出 --limit 5 polymarket -o json markets 搜索 "bitcoin" --limit 5 polymarket -o json clob midpoint 令牌_ID
Opinionated 工作流s Re搜索 a market
Use this when the user wants a quick market read without trading.
搜索 likely candidates: polymarket -o json markets 搜索 "查询" --limit 10
Pick the most relevant slug or 令牌ized market. If needed, inspect detAIls: polymarket -o json markets 获取 MARKET_ID_OR_SLUG
If 令牌 IDs are avAIlable, inspect price/action: polymarket -o json clob midpoint 令牌_ID polymarket -o json clob spread 令牌_ID polymarket -o json clob book 令牌_ID polymarket -o json clob price-历史 令牌_ID --interval 1d --fidelity 30
Summarize with: question, current odds, spread/liquidity hints, recent price 上下文, and any obvious caveats.
检查 a wallet safely
Use this when the user wants exposure, PnL-ish 状态, or activity without changing anything.
polymarket -o json data positions 0xWALLET polymarket -o json data value 0xWALLET polymarket -o json data trades 0xWALLET --limit 50
If the local 配置d wallet is relevant and the user wants account 状态, use read-only 认证d 检查s that do not expose secrets:
polymarket -o json clob balance --as设置-type collateral polymarket -o json clob orders polymarket -o json clob trades polymarket 应用rove 检查
Do not 运行 wallet show; tell the user to 运行 wallet-management commands themselves.
Place a limit order safely
Do not 运行 until the user confirms all of:
market or 令牌 side (buy/sell) price size or amount whether post-only is desired
Recommended sequence:
# 1) 验证 market 上下文 first polymarket -o json clob midpoint 令牌_ID polymarket -o json clob spread 令牌_ID polymarket -o json clob book 令牌_ID
# 2) Then place only after confirmation polymarket clob 创建-order --令牌 令牌_ID --side buy --price 0.50 --size 10
Repeat the full order back to the user before execution.
Common tasks Browse markets and 事件 polymarket markets 列出 --limit 10 polymarket markets 搜索 "election" --limit 5 polymarket markets 获取 MARKET_ID_OR_SLUG polymarket 事件 列出 --limit 10 polymarket 事件 获取 EVENT_ID
Inspect price/action on the CLOB polymarket clob ok polymarket clob book 令牌_ID polymarket clob midpoint 令牌_ID polymarket clob spread 令牌_ID polymarket clob price-历史 令牌_ID --interval 1d --fidelity 30
Inspect public wallet/market data polymarket data positions 0xWALLET polymarket data value 0xWALLET polymarket data trades 0xWALLET --limit 50 polymarket data holders 0xCONDITION_ID polymarket data open-interest 0xCONDITION_ID polymarket data leaderboard --period month --order-by pnl --limit 10
Wallet and 设置up
Wallet-management commands are user-only. Do not 运行 them yourself. If the user wants 设置up help, tell them which command to 运行 locally.
# user-only polymarket 设置up polymarket wallet 创建 polymarket wallet 导入 0xPRIVATE_KEY polymarket wallet show
# 代理 may 运行 read-only 应用roval 检查s polymarket 应用rove 检查
# 代理 must ask before any on-chAIn 应用roval write polymarket 应用rove 设置
Trading
Only 运行 after confirmation.
polymarket clob 创建-order --令牌 令牌_ID --side buy --price 0.50 --size 10 polymarket clob market-order --令牌 令牌_ID --side buy --amount 5 polymarket clob orders polymarket clob cancel ORDER_ID polymarket clob cancel-all
Working style Prefer read-only discovery first. If the user wants trading, 验证 the exact 令牌/market, side, size/amount, and price before 运行ning anything. For scripts and summaries, use -o json and 解析 the 结果. If a command fAIls, re运行 with --help on the relevant subcommand to inspect flags. If the 命令行工具 is missing, tell the user how to 安装 it: brew tap Polymarket/polymarket-命令行工具 https://github.com/Po