Integrate Kalshi prediction markets into the workflow. Can get markets, market, events, event, balance, positions, orders, orderbook, trades, candlesticks, fills, series, exchange status, and place/cancel/amend trades.
Retrieve a list of prediction markets from Kalshi with optional filtering
| Parameter | Type | Required | Description |
|---|
status | string | No | Filter by status (unopened, open, closed, settled) |
seriesTicker | string | No | Filter by series ticker |
eventTicker | string | No | Filter by event ticker |
limit | string | No | Number of results (1-1000, default: 100) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
markets | array | Array of market objects |
paging | object | Pagination cursor for fetching more results |
Retrieve details of a specific prediction market by ticker
| Parameter | Type | Required | Description |
|---|
ticker | string | Yes | The market ticker (e.g., "KXBTC-24DEC31") |
| Parameter | Type | Description |
|---|
market | object | Market object with details |
Retrieve a list of events from Kalshi with optional filtering
| Parameter | Type | Required | Description |
|---|
status | string | No | Filter by status (open, closed, settled) |
seriesTicker | string | No | Filter by series ticker |
withNestedMarkets | string | No | Include nested markets in response (true/false) |
limit | string | No | Number of results (1-200, default: 200) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
events | array | Array of event objects |
paging | object | Pagination cursor for fetching more results |
Retrieve details of a specific event by ticker
| Parameter | Type | Required | Description |
|---|
eventTicker | string | Yes | The event ticker |
withNestedMarkets | string | No | Include nested markets in response (true/false) |
| Parameter | Type | Description |
|---|
event | object | Event object with details |
Retrieve your account balance and portfolio value from Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
| Parameter | Type | Description |
|---|
balance | number | Account balance in cents |
portfolioValue | number | Portfolio value in cents |
balanceDollars | number | Account balance in dollars |
portfolioValueDollars | number | Portfolio value in dollars |
Retrieve your open positions from Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
ticker | string | No | Filter by market ticker |
eventTicker | string | No | Filter by event ticker (max 10 comma-separated) |
settlementStatus | string | No | Filter by settlement status (all, unsettled, settled). Default: unsettled |
limit | string | No | Number of results (1-1000, default: 100) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
positions | array | Array of position objects |
paging | object | Pagination cursor for fetching more results |
Retrieve your orders from Kalshi with optional filtering
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
ticker | string | No | Filter by market ticker |
eventTicker | string | No | Filter by event ticker (max 10 comma-separated) |
status | string | No | Filter by status (resting, canceled, executed) |
limit | string | No | Number of results (1-200, default: 100) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
orders | array | Array of order objects |
paging | object | Pagination cursor for fetching more results |
Retrieve details of a specific order by ID from Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
orderId | string | Yes | The order ID to retrieve |
| Parameter | Type | Description |
|---|
order | object | Order object with details |
Retrieve the orderbook (yes and no bids) for a specific market
| Parameter | Type | Required | Description |
|---|
ticker | string | Yes | Market ticker (e.g., KXBTC-24DEC31) |
| Parameter | Type | Description |
|---|
orderbook | object | Orderbook with yes/no bids and asks |
Retrieve recent trades across all markets
| Parameter | Type | Required | Description |
|---|
limit | string | No | Number of results (1-1000, default: 100) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
trades | array | Array of trade objects |
paging | object | Pagination cursor for fetching more results |
Retrieve OHLC candlestick data for a specific market
| Parameter | Type | Required | Description |
|---|
seriesTicker | string | Yes | Series ticker |
ticker | string | Yes | Market ticker (e.g., KXBTC-24DEC31) |
startTs | number | Yes | Start timestamp (Unix seconds) |
endTs | number | Yes | End timestamp (Unix seconds) |
periodInterval | number | Yes | Period interval: 1 (1min), 60 (1hour), or 1440 (1day) |
| Parameter | Type | Description |
|---|
candlesticks | array | Array of OHLC candlestick data |
Retrieve your portfolio's fills/trades from Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
ticker | string | No | Filter by market ticker |
orderId | string | No | Filter by order ID |
minTs | number | No | Minimum timestamp (Unix milliseconds) |
maxTs | number | No | Maximum timestamp (Unix milliseconds) |
limit | string | No | Number of results (1-1000, default: 100) |
cursor | string | No | Pagination cursor for next page |
| Parameter | Type | Description |
|---|
fills | array | Array of fill/trade objects |
paging | object | Pagination cursor for fetching more results |
Retrieve details of a specific market series by ticker
| Parameter | Type | Required | Description |
|---|
seriesTicker | string | Yes | Series ticker |
| Parameter | Type | Description |
|---|
series | object | Series object with details |
Retrieve the current status of the Kalshi exchange (trading and exchange activity)
| Parameter | Type | Required | Description |
|---|
| Parameter | Type | Description |
|---|
status | object | Exchange status with trading_active and exchange_active flags |
Create a new order on a Kalshi prediction market
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
ticker | string | Yes | Market ticker (e.g., KXBTC-24DEC31) |
side | string | Yes | Side of the order: 'yes' or 'no' |
action | string | Yes | Action type: 'buy' or 'sell' |
count | string | Yes | Number of contracts (minimum 1) |
type | string | No | Order type: 'limit' or 'market' (default: limit) |
yesPrice | string | No | Yes price in cents (1-99) |
noPrice | string | No | No price in cents (1-99) |
yesPriceDollars | string | No | Yes price in dollars (e.g., "0.56") |
noPriceDollars | string | No | No price in dollars (e.g., "0.56") |
clientOrderId | string | No | Custom order identifier |
expirationTs | string | No | Unix timestamp for order expiration |
timeInForce | string | No | Time in force: 'fill_or_kill', 'good_till_canceled', 'immediate_or_cancel' |
buyMaxCost | string | No | Maximum cost in cents (auto-enables fill_or_kill) |
postOnly | string | No | Set to 'true' for maker-only orders |
reduceOnly | string | No | Set to 'true' for position reduction only |
selfTradePreventionType | string | No | Self-trade prevention: 'taker_at_cross' or 'maker' |
orderGroupId | string | No | Associated order group ID |
| Parameter | Type | Description |
|---|
order | object | The created order object |
Cancel an existing order on Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
orderId | string | Yes | The order ID to cancel |
| Parameter | Type | Description |
|---|
order | object | The canceled order object |
reducedBy | number | Number of contracts canceled |
Modify the price or quantity of an existing order on Kalshi
| Parameter | Type | Required | Description |
|---|
keyId | string | Yes | Your Kalshi API Key ID |
privateKey | string | Yes | Your RSA Private Key (PEM format) |
orderId | string | Yes | The order ID to amend |
ticker | string | Yes | Market ticker |
side | string | Yes | Side of the order: 'yes' or 'no' |
action | string | Yes | Action type: 'buy' or 'sell' |
clientOrderId | string | Yes | The original client-specified order ID |
updatedClientOrderId | string | Yes | The new client-specified order ID after amendment |
count | string | No | Updated quantity for the order |
yesPrice | string | No | Updated yes price in cents (1-99) |
noPrice | string | No | Updated no price in cents (1-99) |
yesPriceDollars | string | No | Updated yes price in dollars (e.g., "0.56") |
noPriceDollars | string | No | Updated no price in dollars (e.g., "0.56") |
| Parameter | Type | Description |
|---|
order | object | The amended order object |
- Category:
tools
- Type:
kalshi