Kalshi

Access prediction markets and trade on Kalshi

Configuration

Get Markets

Operation
Get Markets
Status
Select...
Series Ticker
Filter by series ticker
Event Ticker
Event ticker
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Markets (kalshi_get_markets)

Retrieve a list of prediction markets from Kalshi with optional filtering

Input
ParameterTypeRequiredDescription
statusstringNoFilter by status (unopened, open, closed, settled)
seriesTickerstringNoFilter by series ticker
eventTickerstringNoFilter by event ticker
limitstringNoNumber of results (1-1000, default: 100)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
marketsarrayArray of market objects

Get Market

Operation
Get Market
Market Ticker*
Market ticker (e.g., KXBTC-24DEC31)
Get Market (kalshi_get_market)

Retrieve details of a specific prediction market by ticker

Input
ParameterTypeRequiredDescription
tickerstringYesThe market ticker (e.g., "KXBTC-24DEC31")
Output

Refer to the block outputs for this operation.


Get Events

Operation
Get Events
Status
Select...
Series Ticker
Filter by series ticker
Include Markets
Select...
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Events (kalshi_get_events)

Retrieve a list of events from Kalshi with optional filtering

Input
ParameterTypeRequiredDescription
statusstringNoFilter by status (open, closed, settled)
seriesTickerstringNoFilter by series ticker
withNestedMarketsstringNoInclude nested markets in response (true/false)
limitstringNoNumber of results (1-200, default: 200)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
eventsarrayArray of event objects

Get Event

Operation
Get Event
Event Ticker
Event ticker
Include Markets
Select...
Get Event (kalshi_get_event)

Retrieve details of a specific event by ticker

Input
ParameterTypeRequiredDescription
eventTickerstringYesThe event ticker
withNestedMarketsstringNoInclude nested markets in response (true/false)
Output

Refer to the block outputs for this operation.


Get Balance

Operation
Get Balance
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Get Balance (kalshi_get_balance)

Retrieve your account balance and portfolio value from Kalshi

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
Output
ParameterTypeDescription
balancenumberAccount balance in cents

Get Positions

Operation
Get Positions
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Event Ticker
Event ticker
Market Ticker
Filter by market ticker (optional)
Settlement Status
Select...
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Positions (kalshi_get_positions)

Retrieve your open positions from Kalshi

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
tickerstringNoFilter by market ticker
eventTickerstringNoFilter by event ticker (max 10 comma-separated)
settlementStatusstringNoFilter by settlement status (all, unsettled, settled). Default: unsettled
limitstringNoNumber of results (1-1000, default: 100)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
positionsarrayArray of position objects

Get Orders

Operation
Get Orders
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Event Ticker
Event ticker
Market Ticker
Filter by market ticker (optional)
Order Status
Select...
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Orders (kalshi_get_orders)

Retrieve your orders from Kalshi with optional filtering

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
tickerstringNoFilter by market ticker
eventTickerstringNoFilter by event ticker (max 10 comma-separated)
statusstringNoFilter by status (resting, canceled, executed)
limitstringNoNumber of results (1-200, default: 100)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
ordersarrayArray of order objects

Get Order

Operation
Get Order
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Order ID*
Order ID
Get Order (kalshi_get_order)

Retrieve details of a specific order by ID from Kalshi

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
orderIdstringYesThe order ID to retrieve
Output

Refer to the block outputs for this operation.


Get Orderbook

Operation
Get Orderbook
Market Ticker*
Market ticker (e.g., KXBTC-24DEC31)
Get Orderbook (kalshi_get_orderbook)

Retrieve the orderbook (yes and no bids) for a specific market

Input
ParameterTypeRequiredDescription
tickerstringYesMarket ticker (e.g., KXBTC-24DEC31)
Output

Refer to the block outputs for this operation.


Get Trades

Operation
Get Trades
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Trades (kalshi_get_trades)

Retrieve recent trades across all markets

Input
ParameterTypeRequiredDescription
limitstringNoNumber of results (1-1000, default: 100)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
tradesarrayArray of trade objects

Get Candlesticks

Operation
Get Candlesticks
Series Ticker*
Series ticker
Market Ticker*
Market ticker (e.g., KXBTC-24DEC31)
Start Timestamp*
Start timestamp (Unix seconds)
End Timestamp*
End timestamp (Unix seconds)
Period Interval*
Select...
Get Candlesticks (kalshi_get_candlesticks)

Retrieve OHLC candlestick data for a specific market

Input
ParameterTypeRequiredDescription
seriesTickerstringYesSeries ticker
tickerstringYesMarket ticker (e.g., KXBTC-24DEC31)
startTsnumberYesStart timestamp (Unix seconds)
endTsnumberYesEnd timestamp (Unix seconds)
periodIntervalnumberYesPeriod interval: 1 (1min), 60 (1hour), or 1440 (1day)
Output

Refer to the block outputs for this operation.


Get Fills

Operation
Get Fills
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Min Timestamp
Minimum timestamp (Unix milliseconds)
Max Timestamp
Maximum timestamp (Unix milliseconds)
Market Ticker
Filter by market ticker (optional)
Order ID
Filter by order ID (optional)
Limit
Number of results (1-1000, default: 100)
Cursor
Pagination cursor
Get Fills (kalshi_get_fills)

Retrieve your portfolio

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
tickerstringNoFilter by market ticker
orderIdstringNoFilter by order ID
minTsnumberNoMinimum timestamp (Unix milliseconds)
maxTsnumberNoMaximum timestamp (Unix milliseconds)
limitstringNoNumber of results (1-1000, default: 100)
cursorstringNoPagination cursor for next page
Output
ParameterTypeDescription
fillsarrayArray of fill/trade objects

Get Series by Ticker

Operation
Get Series by Ticker
Series Ticker*
Series ticker
Get Series by Ticker (kalshi_get_series_by_ticker)

Retrieve details of a specific market series by ticker

Input
ParameterTypeRequiredDescription
seriesTickerstringYesSeries ticker
Output

Refer to the block outputs for this operation.


Get Exchange Status

Operation
Get Exchange Status
Get Exchange Status (kalshi_get_exchange_status)

Retrieve the current status of the Kalshi exchange (trading and exchange activity)

Input
ParameterTypeRequiredDescription
Output

Refer to the block outputs for this operation.


Create Order

Operation
Create Order
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Market Ticker*
Market ticker (e.g., KXBTC-24DEC31)
Side*
Select...
Action*
Select...
Contracts*
Number of contracts
Order Type
Select...
Yes Price (cents)
Yes price in cents (1-99)
No Price (cents)
No price in cents (1-99)
Client Order ID
Custom order identifier (optional)
Time in Force
Select...
Expiration
Unix timestamp for order expiration
Post Only
Select...
Reduce Only
Select...
Create Order (kalshi_create_order)

Create a new order on a Kalshi prediction market

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
tickerstringYesMarket ticker (e.g., KXBTC-24DEC31)
sidestringYesSide of the order: 'yes' or 'no'
actionstringYesAction type: 'buy' or 'sell'
countstringYesNumber of contracts (minimum 1)
typestringNoOrder type: 'limit' or 'market' (default: limit)
yesPricestringNoYes price in cents (1-99)
noPricestringNoNo price in cents (1-99)
yesPriceDollarsstringNoYes price in dollars (e.g., "0.56")
noPriceDollarsstringNoNo price in dollars (e.g., "0.56")
clientOrderIdstringNoCustom order identifier
expirationTsstringNoUnix timestamp for order expiration
timeInForcestringNoTime in force: 'fill_or_kill', 'good_till_canceled', 'immediate_or_cancel'
buyMaxCoststringNoMaximum cost in cents (auto-enables fill_or_kill)
postOnlystringNoSet to 'true' for maker-only orders
reduceOnlystringNoSet to 'true' for position reduction only
selfTradePreventionTypestringNoSelf-trade prevention: 'taker_at_cross' or 'maker'
orderGroupIdstringNoAssociated order group ID
Output

Refer to the block outputs for this operation.


Cancel Order

Operation
Cancel Order
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Order ID*
Order ID
Cancel Order (kalshi_cancel_order)

Cancel an existing order on Kalshi

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
orderIdstringYesThe order ID to cancel
Output
ParameterTypeDescription
orderobjectThe canceled order object

Amend Order

Operation
Amend Order
API Key ID*
Your Kalshi API Key ID
Private Key*
Your RSA Private Key (PEM format)
Order ID*
Order ID
Market Ticker*
Market ticker (e.g., KXBTC-24DEC31)
Side*
Select...
Action*
Select...
Contracts
Updated number of contracts (optional)
Yes Price (cents)
Yes price in cents (1-99)
No Price (cents)
No price in cents (1-99)
Client Order ID*
Original client order ID
New Client Order ID*
New client order ID after amendment
Amend Order (kalshi_amend_order)

Modify the price or quantity of an existing order on Kalshi

Input
ParameterTypeRequiredDescription
keyIdstringYesYour Kalshi API Key ID
privateKeystringYesYour RSA Private Key (PEM format)
orderIdstringYesThe order ID to amend
tickerstringYesMarket ticker
sidestringYesSide of the order: 'yes' or 'no'
actionstringYesAction type: 'buy' or 'sell'
clientOrderIdstringYesThe original client-specified order ID
updatedClientOrderIdstringYesThe new client-specified order ID after amendment
countstringNoUpdated quantity for the order
yesPricestringNoUpdated yes price in cents (1-99)
noPricestringNoUpdated no price in cents (1-99)
yesPriceDollarsstringNoUpdated yes price in dollars (e.g., "0.56")
noPriceDollarsstringNoUpdated no price in dollars (e.g., "0.56")
Output

Refer to the block outputs for this operation.


Usage Instructions

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.

Notes

  • Category: tools
  • Type: kalshi