# Kalshi — prediction market trading via the official API

> Trade Kalshi prediction markets via the official REST API: discover events and markets, read orderbooks, check balance and positions, place and cancel orders.

Kalshi — prediction market trading via the official API is a free AI agent skill on Agensi by Orbital Desk, in Finance & Accounting. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Orbital Desk](https://www.agensi.io/creators/orbital-desk)
- Category: [Finance & Accounting](https://www.agensi.io/skills/finance-accounting)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-12
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/kalshi-prediction-market-trading-via-the-official-api
- Tags: finance, data

## About this skill

This skill manages Kalshi event-contract trades through the official REST API: discover events and markets, inspect orderbooks, view balance and positions, and place and cancel orders. No bundled CLI — public endpoints need no auth, and portfolio endpoints use Kalshi's three-header request signing.

Authentication signs `timestamp + METHOD + path` with RSA-PSS-SHA256 and sends `KALSHI-ACCESS-KEY`, `KALSHI-ACCESS-TIMESTAMP`, and `KALSHI-ACCESS-SIGNATURE`. Credentials (API key UUID and RSA private key) come from environment variables at runtime, never hardcoded or logged. `KALSHI_ENV` switches between the demo exchange and production, and the demo base URL makes dry runs easy.

The economics are stated up front: prices are in cents from 1 to 99, every contract pays $1.00 if correct and $0 if wrong, and the agent must always compute and state total cost (count × price) and maximum payout before any order.

The guardrail is absolute: before placing any order, the agent presents ticker, side (YES/NO), action (buy/sell), count, price, and total cost, and requires the user's explicit confirmation — never skipped, never batched silently. It also verifies a position exists before selling, and on 401/403 checks the signature construction (path without query string, right environment) before blaming the key.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Kalshi — prediction market trading via the official API skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Kalshi — prediction market trading via the official API do?

Trade Kalshi prediction markets via the official REST API: discover events and markets, read orderbooks, check balance and positions, place and cancel orders.

### Which AI agents support Kalshi — prediction market trading via the official API?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Kalshi — prediction market trading via the official API?

Connect your AI agent to Agensi through MCP, then ask it to use Kalshi — prediction market trading via the official API on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
