trading-kalshi

Trade Kalshi prediction markets programmatically via REST API.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/shreed27/DAIN --skill trading-kalshi-shreed27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trading-kalshi
Source: https://github.com/shreed27/DAIN/tree/main/CloddsBot-main/src/skills/bundled/trading-kalshi
Command: npx skills add https://github.com/shreed27/DAIN --skill trading-kalshi-shreed27

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, websocket-client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides full programmatic access to Kalshi's prediction markets, enabling automated trading and data retrieval via their REST API.

Core Features & Use Cases

  • Market Data: Access real-time market information, orderbooks, and historical trades.
  • Order Management: Place, amend, cancel, and track buy/sell orders for prediction contracts.
  • Portfolio Tracking: Monitor account balance, open positions, and settlement history.
  • Use Case: Develop an automated trading bot that monitors specific prediction markets (e.g., economic events, political outcomes) and executes trades based on predefined strategies or real-time price movements.

Quick Start

Use the trading-kalshi skill to buy 10 YES contracts for the 'INXD-24JAN10-T5805' market at a price of 45 cents.

Frequently Asked Questions about trading-kalshi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate trading on Kalshi prediction markets?

Automate trading on Kalshi prediction markets by using a REST API to retrieve market data, place orders, and track portfolios programmatically. This skill handles API authentication via environment variables to securely execute automated trading strategies.

Can I retrieve real-time orderbook data and historical trades from Kalshi?

Retrieve real-time orderbook data and historical trades from Kalshi through the REST API's market data endpoints. This allows automated trading bots to access current market information and past trade history for prediction contracts.

How do I place and manage orders for Kalshi prediction contracts programmatically?

Place and manage orders for Kalshi prediction contracts programmatically via REST API calls that support buying, selling, amending, and canceling orders. You can execute trades like buying 10 YES contracts for a specific market at a defined price.

Does the Kalshi API require environment variables for authentication?

The Kalshi API requires environment variables for authentication to ensure secure access to your trading account. This method keeps your API credentials safe when building automated trading bots and executing programmatic trades.

How do I track my portfolio balance and open positions on Kalshi?

Track your portfolio balance and open positions on Kalshi using the REST API's portfolio tracking endpoints. You can monitor your account balance, view current open positions, and review your settlement history for prediction market trades.

What dependencies do I need to build a Kalshi trading bot?

To build a Kalshi trading bot, you need the requests and websocket-client Python libraries to handle REST API calls and real-time data connections. These dependencies support market data retrieval, order management, and portfolio tracking.