- Home
- Skills
- Finance & Accounting
- Kalshi — prediction market trading via the official API
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.
Free
Works with the AI Agents you already use
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
1 use
Times used to date
Free forever
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
Requires
Permissions
Allowed Hosts