{
  "schemaVersion": "1.0",
  "item": {
    "slug": "kalshi",
    "name": "Kalshi",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/henrik-openclaw/kalshi",
    "canonicalUrl": "https://clawhub.ai/henrik-openclaw/kalshi",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/kalshi",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=kalshi",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "references/api.md",
      "scripts/kalshi_portfolio.py",
      "scripts/kalshi_markets.py",
      "SKILL.md"
    ],
    "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"
    },
    "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",
    "agentPageUrl": "https://openagent3.xyz/skills/kalshi/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kalshi/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kalshi/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 Prediction Markets",
        "body": "Read-only integration with Kalshi's prediction market API."
      },
      {
        "title": "Capabilities",
        "body": "Browse markets: List active events and markets by category\nMarket analysis: Get prices, volumes, orderbook depth\nPortfolio view: Check positions and P&L (requires API key)\nTrade recommendations: Find high-certainty, high-payoff opportunities"
      },
      {
        "title": "Setup",
        "body": "Install dependencies:\n\npip install requests cryptography\n\nFor portfolio access (RSA key signing required):\n\nGo to kalshi.com/account/profile\nCreate new API key → save the Key ID and download the private key\nStore credentials:\n\nmkdir -p ~/.kalshi\nmv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem\nchmod 600 ~/.kalshi/private_key.pem\n\nCreate ~/.kalshi/credentials.json:\n\n{\n  \"api_key_id\": \"your-key-id-here\",\n  \"private_key_path\": \"~/.kalshi/private_key.pem\"\n}\n\nOr run interactive setup:\n\npython scripts/kalshi_portfolio.py setup"
      },
      {
        "title": "Market Data (No Auth Required)",
        "body": "# List trending markets\npython scripts/kalshi_markets.py trending\n\n# Search markets by query\npython scripts/kalshi_markets.py search \"bitcoin\"\n\n# Get specific market details\npython scripts/kalshi_markets.py market TICKER\n\n# Find high-value opportunities\npython scripts/kalshi_markets.py opportunities"
      },
      {
        "title": "Portfolio (Auth Required)",
        "body": "# View positions\npython scripts/kalshi_portfolio.py positions\n\n# View balance\npython scripts/kalshi_portfolio.py balance\n\n# Trade history\npython scripts/kalshi_portfolio.py history"
      },
      {
        "title": "Opportunity Analysis",
        "body": "The opportunities command identifies markets where:\n\nHigh certainty: Price ≥85¢ YES or ≤15¢ YES (implies 85%+ confidence)\nMeaningful payoff: Potential return ≥10% on capital\nSufficient liquidity: Orderbook depth supports reasonable position size\n\nFormula: expected_value = probability * payoff - (1 - probability) * cost\n\nA good opportunity has: EV / cost > 0.1 (10%+ expected return)"
      },
      {
        "title": "Categories",
        "body": "Kalshi markets span:\n\nPolitics & Elections\nEconomics (Fed rates, inflation, GDP)\nWeather & Climate\nFinance (stock prices, crypto)\nEntertainment & Sports\nScience & Tech"
      },
      {
        "title": "API Reference",
        "body": "See references/api.md for endpoint details."
      },
      {
        "title": "Important Notes",
        "body": "This skill is READ-ONLY — no trade execution\nPublic endpoints don't require authentication\nPortfolio/balance requires API credentials\nMarkets settle in cents (100¢ = $1)\nAll times in UTC"
      }
    ],
    "body": "Kalshi Prediction Markets\n\nRead-only integration with Kalshi's prediction market API.\n\nCapabilities\nBrowse markets: List active events and markets by category\nMarket analysis: Get prices, volumes, orderbook depth\nPortfolio view: Check positions and P&L (requires API key)\nTrade recommendations: Find high-certainty, high-payoff opportunities\nSetup\n\nInstall dependencies:\n\npip install requests cryptography\n\n\nFor portfolio access (RSA key signing required):\n\nGo to kalshi.com/account/profile\nCreate new API key → save the Key ID and download the private key\nStore credentials:\nmkdir -p ~/.kalshi\nmv ~/Downloads/your-key-file.txt ~/.kalshi/private_key.pem\nchmod 600 ~/.kalshi/private_key.pem\n\nCreate ~/.kalshi/credentials.json:\n{\n  \"api_key_id\": \"your-key-id-here\",\n  \"private_key_path\": \"~/.kalshi/private_key.pem\"\n}\n\n\nOr run interactive setup:\n\npython scripts/kalshi_portfolio.py setup\n\nScripts\nMarket Data (No Auth Required)\n# List trending markets\npython scripts/kalshi_markets.py trending\n\n# Search markets by query\npython scripts/kalshi_markets.py search \"bitcoin\"\n\n# Get specific market details\npython scripts/kalshi_markets.py market TICKER\n\n# Find high-value opportunities\npython scripts/kalshi_markets.py opportunities\n\nPortfolio (Auth Required)\n# View positions\npython scripts/kalshi_portfolio.py positions\n\n# View balance\npython scripts/kalshi_portfolio.py balance\n\n# Trade history\npython scripts/kalshi_portfolio.py history\n\nOpportunity Analysis\n\nThe opportunities command identifies markets where:\n\nHigh certainty: Price ≥85¢ YES or ≤15¢ YES (implies 85%+ confidence)\nMeaningful payoff: Potential return ≥10% on capital\nSufficient liquidity: Orderbook depth supports reasonable position size\n\nFormula: expected_value = probability * payoff - (1 - probability) * cost\n\nA good opportunity has: EV / cost > 0.1 (10%+ expected return)\n\nCategories\n\nKalshi markets span:\n\nPolitics & Elections\nEconomics (Fed rates, inflation, GDP)\nWeather & Climate\nFinance (stock prices, crypto)\nEntertainment & Sports\nScience & Tech\nAPI Reference\n\nSee references/api.md for endpoint details.\n\nImportant Notes\nThis skill is READ-ONLY — no trade execution\nPublic endpoints don't require authentication\nPortfolio/balance requires API credentials\nMarkets settle in cents (100¢ = $1)\nAll times in UTC"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/henrik-openclaw/kalshi",
    "publisherUrl": "https://clawhub.ai/henrik-openclaw/kalshi",
    "owner": "henrik-openclaw",
    "version": "1.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/kalshi",
    "downloadUrl": "https://openagent3.xyz/downloads/kalshi",
    "agentUrl": "https://openagent3.xyz/skills/kalshi/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kalshi/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kalshi/agent.md"
  }
}