{
  "schemaVersion": "1.0",
  "item": {
    "slug": "kalshi-trading",
    "name": "Kalshi Trading",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ghsmc/kalshi-trading",
    "canonicalUrl": "https://clawhub.ai/ghsmc/kalshi-trading",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/kalshi-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=kalshi-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/api-notes.md",
      "references/setup-guide.md",
      "references/trading-guide.md",
      "scripts/kalshi-cli.mjs",
      "scripts/quick-analysis.mjs"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/kalshi-trading"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/kalshi-trading",
    "agentPageUrl": "https://openagent3.xyz/skills/kalshi-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kalshi-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kalshi-trading/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Kalshi",
        "body": "Trade on Kalshi prediction markets via a self-contained CLI script. Supports market search, portfolio tracking, and full order lifecycle (place/cancel/monitor)."
      },
      {
        "title": "Quick Start",
        "body": "All commands route through a single script. Output is JSON."
      },
      {
        "title": "CLI",
        "body": "Primary script:\n\n{baseDir}/scripts/kalshi-cli.mjs <command> [args...]\n\nHelper script:\n\n{baseDir}/scripts/quick-analysis.mjs <ticker>\n\nCombines market details + orderbook in a single call for fast analysis."
      },
      {
        "title": "Commands",
        "body": "CommandDescriptionbalanceGet account balance (cash + portfolio value)portfolioGet balance + all open positionstrendingTop markets by 24h volumesearch <query>Search markets by keywordmarket <ticker>Get details for a single marketorderbook <ticker>Get bid/ask levels for a marketbuy <ticker> <yes|no> <count> <price>Place a buy order (price in cents 1-99)sell <ticker> <yes|no> <count> <price>Place a sell order (price in cents 1-99)cancel <orderId>Cancel a resting orderorders [resting|canceled|executed]List orders, optionally filtered by statusfills [ticker]List recent fills, optionally filtered by ticker"
      },
      {
        "title": "Examples",
        "body": "# Check balance\n{baseDir}/scripts/kalshi-cli.mjs balance\n\n# See what's trending\n{baseDir}/scripts/kalshi-cli.mjs trending\n\n# Search for markets about bitcoin\n{baseDir}/scripts/kalshi-cli.mjs search \"bitcoin\"\n\n# Get details on a specific market\n{baseDir}/scripts/kalshi-cli.mjs market KXBTCD-26FEB14-B55500\n\n# Check orderbook\n{baseDir}/scripts/kalshi-cli.mjs orderbook KXBTCD-26FEB14-B55500\n\n# Buy 5 YES contracts at 65 cents\n{baseDir}/scripts/kalshi-cli.mjs buy KXBTCD-26FEB14-B55500 yes 5 65\n\n# Sell 5 YES contracts at 70 cents\n{baseDir}/scripts/kalshi-cli.mjs sell KXBTCD-26FEB14-B55500 yes 5 70\n\n# Check open orders\n{baseDir}/scripts/kalshi-cli.mjs orders resting\n\n# Check recent fills\n{baseDir}/scripts/kalshi-cli.mjs fills"
      },
      {
        "title": "Output",
        "body": "All commands output JSON to stdout. Parse the result to present it to the user."
      },
      {
        "title": "Trading Rules",
        "body": "Critical: ALWAYS confirm with the user before placing any buy or sell order.\n\nBefore executing a trade, show the user:\n\nTicker\nSide (YES or NO)\nCount (number of contracts)\nPrice (in cents)\nTotal cost = count × price cents = $X.XX\n\nPrice format:\n\nPrices are in cents (1-99)\n65 cents = $0.65 per contract\nMinimum: 1 cent, Maximum: 99 cents\n\nPayouts:\n\nAll contracts pay $1.00 (100 cents) if correct, $0 if wrong\nYES at 65¢: costs 65¢, pays $1.00 if YES wins → 35¢ profit per contract\nNO at 35¢: costs 35¢, pays $1.00 if NO wins → 65¢ profit per contract\nYES price + NO price ≈ 100¢ (spreads cause small deviations)\n\nBefore selling: Verify the user holds the position by checking portfolio first"
      },
      {
        "title": "Reference Documentation",
        "body": "setup-guide.md - Getting API credentials, configuration, troubleshooting\ntrading-guide.md - Market mechanics, strategy tips, risk management\napi-notes.md - Technical API details, data formats, common patterns"
      },
      {
        "title": "Environment Variables",
        "body": "Required:\n\nKALSHI_API_KEY_ID — your Kalshi API key UUID\nKALSHI_PRIVATE_KEY_PATH — absolute path to your RSA private key PEM file\n\nSee setup-guide.md for detailed configuration instructions."
      }
    ],
    "body": "Kalshi\n\nTrade on Kalshi prediction markets via a self-contained CLI script. Supports market search, portfolio tracking, and full order lifecycle (place/cancel/monitor).\n\nQuick Start\n\nAll commands route through a single script. Output is JSON.\n\nCLI\n\nPrimary script:\n\n{baseDir}/scripts/kalshi-cli.mjs <command> [args...]\n\n\nHelper script:\n\n{baseDir}/scripts/quick-analysis.mjs <ticker>\n\n\nCombines market details + orderbook in a single call for fast analysis.\n\nCommands\nCommand\tDescription\nbalance\tGet account balance (cash + portfolio value)\nportfolio\tGet balance + all open positions\ntrending\tTop markets by 24h volume\nsearch <query>\tSearch markets by keyword\nmarket <ticker>\tGet details for a single market\norderbook <ticker>\tGet bid/ask levels for a market\nbuy <ticker> <yes|no> <count> <price>\tPlace a buy order (price in cents 1-99)\nsell <ticker> <yes|no> <count> <price>\tPlace a sell order (price in cents 1-99)\ncancel <orderId>\tCancel a resting order\norders [resting|canceled|executed]\tList orders, optionally filtered by status\nfills [ticker]\tList recent fills, optionally filtered by ticker\nExamples\n# Check balance\n{baseDir}/scripts/kalshi-cli.mjs balance\n\n# See what's trending\n{baseDir}/scripts/kalshi-cli.mjs trending\n\n# Search for markets about bitcoin\n{baseDir}/scripts/kalshi-cli.mjs search \"bitcoin\"\n\n# Get details on a specific market\n{baseDir}/scripts/kalshi-cli.mjs market KXBTCD-26FEB14-B55500\n\n# Check orderbook\n{baseDir}/scripts/kalshi-cli.mjs orderbook KXBTCD-26FEB14-B55500\n\n# Buy 5 YES contracts at 65 cents\n{baseDir}/scripts/kalshi-cli.mjs buy KXBTCD-26FEB14-B55500 yes 5 65\n\n# Sell 5 YES contracts at 70 cents\n{baseDir}/scripts/kalshi-cli.mjs sell KXBTCD-26FEB14-B55500 yes 5 70\n\n# Check open orders\n{baseDir}/scripts/kalshi-cli.mjs orders resting\n\n# Check recent fills\n{baseDir}/scripts/kalshi-cli.mjs fills\n\nOutput\n\nAll commands output JSON to stdout. Parse the result to present it to the user.\n\nTrading Rules\n\nCritical: ALWAYS confirm with the user before placing any buy or sell order.\n\nBefore executing a trade, show the user:\n\nTicker\nSide (YES or NO)\nCount (number of contracts)\nPrice (in cents)\nTotal cost = count × price cents = $X.XX\n\nPrice format:\n\nPrices are in cents (1-99)\n65 cents = $0.65 per contract\nMinimum: 1 cent, Maximum: 99 cents\n\nPayouts:\n\nAll contracts pay $1.00 (100 cents) if correct, $0 if wrong\nYES at 65¢: costs 65¢, pays $1.00 if YES wins → 35¢ profit per contract\nNO at 35¢: costs 35¢, pays $1.00 if NO wins → 65¢ profit per contract\nYES price + NO price ≈ 100¢ (spreads cause small deviations)\n\nBefore selling: Verify the user holds the position by checking portfolio first\n\nReference Documentation\nsetup-guide.md - Getting API credentials, configuration, troubleshooting\ntrading-guide.md - Market mechanics, strategy tips, risk management\napi-notes.md - Technical API details, data formats, common patterns\nEnvironment Variables\n\nRequired:\n\nKALSHI_API_KEY_ID — your Kalshi API key UUID\nKALSHI_PRIVATE_KEY_PATH — absolute path to your RSA private key PEM file\n\nSee setup-guide.md for detailed configuration instructions."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ghsmc/kalshi-trading",
    "publisherUrl": "https://clawhub.ai/ghsmc/kalshi-trading",
    "owner": "ghsmc",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/kalshi-trading",
    "downloadUrl": "https://openagent3.xyz/downloads/kalshi-trading",
    "agentUrl": "https://openagent3.xyz/skills/kalshi-trading/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kalshi-trading/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kalshi-trading/agent.md"
  }
}