# Send Kalshi Trading to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/kalshi-trading",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=kalshi-trading",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api-notes.md",
      "references/setup-guide.md",
      "references/trading-guide.md",
      "scripts/kalshi-cli.mjs",
      "scripts/quick-analysis.mjs"
    ],
    "downloadMode": "redirect",
    "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### Kalshi

Trade on Kalshi prediction markets via a self-contained CLI script. Supports market search, portfolio tracking, and full order lifecycle (place/cancel/monitor).

### Quick Start

All commands route through a single script. Output is JSON.

### CLI

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.

### Commands

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

### Examples

# 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

### Output

All commands output JSON to stdout. Parse the result to present it to the user.

### Trading Rules

Critical: ALWAYS confirm with the user before placing any buy or sell order.

Before executing a trade, show the user:

Ticker
Side (YES or NO)
Count (number of contracts)
Price (in cents)
Total cost = count × price cents = $X.XX

Price format:

Prices are in cents (1-99)
65 cents = $0.65 per contract
Minimum: 1 cent, Maximum: 99 cents

Payouts:

All contracts pay $1.00 (100 cents) if correct, $0 if wrong
YES at 65¢: costs 65¢, pays $1.00 if YES wins → 35¢ profit per contract
NO at 35¢: costs 35¢, pays $1.00 if NO wins → 65¢ profit per contract
YES price + NO price ≈ 100¢ (spreads cause small deviations)

Before selling: Verify the user holds the position by checking portfolio first

### Reference Documentation

setup-guide.md - Getting API credentials, configuration, troubleshooting
trading-guide.md - Market mechanics, strategy tips, risk management
api-notes.md - Technical API details, data formats, common patterns

### Environment Variables

Required:

KALSHI_API_KEY_ID — your Kalshi API key UUID
KALSHI_PRIVATE_KEY_PATH — absolute path to your RSA private key PEM file

See setup-guide.md for detailed configuration instructions.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ghsmc
- Version: 1.0.0
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/kalshi-trading)
- [Send to Agent page](https://openagent3.xyz/skills/kalshi-trading/agent)
- [JSON manifest](https://openagent3.xyz/skills/kalshi-trading/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/kalshi-trading/agent.md)
- [Download page](https://openagent3.xyz/downloads/kalshi-trading)