Trade on Kalshi prediction markets: check portfolio, search markets, analyze orderbooks, place/cancel orders, and manage binary contract positions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install kalshi-trading或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install kalshi-trading⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/kalshi-trading/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: kalshi description: Trade on Kalshi prediction markets (CFTC-regulated prediction market exchange). Check portfolio, search markets, analyze orderbooks, place/cancel orders. Use when working with Kalshi API, trading binary contracts, checking market prices, managing positions, or researching prediction markets on politics, economics, crypto, weather, sports, technology events. homepage: https://kalshi.com/docs/api metadata: { "openclaw": { "emoji": "📈", "requires": { "bins": ["node"], "env": ["KALSHI_API_KEY_ID", "KALSHI_PRIVATE_KEY_PATH"] }, "primaryEnv": "KALSHI_API_KEY_ID", }, } ---
Trade on Kalshi prediction markets via a self-contained CLI script. Supports market search, portfolio tracking, and full order lifecycle (place/cancel/monitor).
All commands route through a single script. Output is JSON.
Primary script:
{baseDir}/scripts/kalshi-cli.mjs <command> [args...]
Helper script:
{baseDir}/scripts/quick-analysis.mjs <ticker>
Combines market details + orderbook in a single call for fast analysis.
| Command | Description | | ----------------------------------------- | ------------------------------------------------ | | balance | Get account balance (cash + portfolio value) | | portfolio | Get balance + all open positions | | trending | Top markets by 24h volume | | search | Search markets by keyword | | market | Get details for a single market | | orderbook | Get bid/ask levels for a market | | buy | Place a buy order (price in cents 1-99) | | sell | Place a sell order (price in cents 1-99) | | cancel | Cancel a resting order | | orders [resting\|canceled\|executed] | List orders, optionally filtered by status | | fills [ticker] | List recent fills, optionally filtered by ticker |
# Check balance
{baseDir}/scripts/kalshi-cli.mjs balance
# See what's trending
{baseDir}/scripts/kalshi-cli.mjs trending
# Search for markets about bitcoin
{baseDir}/scripts/kalshi-cli.mjs search "bitcoin"
# Get details on a specific market
{baseDir}/scripts/kalshi-cli.mjs market KXBTCD-26FEB14-B55500
# Check orderbook
{baseDir}/scripts/kalshi-cli.mjs orderbook KXBTCD-26FEB14-B55500
# Buy 5 YES contracts at 65 cents
{baseDir}/scripts/kalshi-cli.mjs buy KXBTCD-26FEB14-B55500 yes 5 65
# Sell 5 YES contracts at 70 cents
{baseDir}/scripts/kalshi-cli.mjs sell KXBTCD-26FEB14-B55500 yes 5 70
# Check open orders
{baseDir}/scripts/kalshi-cli.mjs orders resting
# Check recent fills
{baseDir}/scripts/kalshi-cli.mjs fills
All commands output JSON to stdout. Parse the result to present it to the user.
Critical: ALWAYS confirm with the user before placing any buy or sell order.
Before executing a trade, show the user:
Price format:
Payouts:
Before selling: Verify the user holds the position by checking portfolio first
Required:
KALSHI_API_KEY_ID — your Kalshi API key UUIDKALSHI_PRIVATE_KEY_PATH — absolute path to your RSA private key PEM fileSee setup-guide.md for detailed configuration instructions.
安装 Kalshi Trading 后,可以对 AI 说这些话来触发它
Help me get started with Kalshi Trading
Explains what Kalshi Trading does, walks through the setup, and runs a quick demo based on your current project
Use Kalshi Trading to trade on Kalshi prediction markets: check portfolio, search markets...
Invokes Kalshi Trading with the right parameters and returns the result directly in the conversation
What can I do with Kalshi Trading in my finance & investment workflow?
Lists the top use cases for Kalshi Trading, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/kalshi-trading/ 目录(个人级,所有项目可用),或 .claude/skills/kalshi-trading/(项目级)。重启 AI 客户端后,用 /kalshi-trading 主动调用,或让 AI 根据上下文自动发现并使用。
Kalshi Trading 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Kalshi Trading 可免费安装使用。请查阅仓库了解许可证信息。
Trade on Kalshi prediction markets: check portfolio, search markets, analyze orderbooks, place/cancel orders, and manage binary contract positions.
Kalshi Trading 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Kalshi Trading
Identifies repetitive steps in your workflow and sets up Kalshi Trading to handle them automatically