Overview
The SDK provides methods to query market information, event metadata, and system configuration.To avoid ambiguity, we denote the smallest possible multiple of USDC (0.000001 USDC) as one
uusdc,
which stands for µUSDC (micro-USDC), and denote the smallest possible multiple of a contract (0.01 contract)
as one ccontract (centicontract).User-facing USDC balances are specified as fixed-point strings (e.g. "1.2625" for USDC). Contract quantities
in the API and SDK are specified as integer ccontracts strings (e.g. "1050" for 10.50 contracts at precision 2).List & Search Events
Search and filter events from the Bison event cache. Events are synced from Kalshi hourly.getEvents
Parameters
All parameters are optional. Omit all parameters to retrieve all events.string
Filter by Kalshi series ticker (e.g.,
"KXBTC")string
Maximum number of events to return (max 200)
string
Search events by title, subtitle, or ticker. Results are sorted by match relevance (title matches first, then subtitle, ticker).
Returns
List of events matching the filter criteria, including title, subtitle, and category.Examples
Get all events:Get Event Information
Retrieve detailed information about a Kalshi event and its markets.getEvent
Parameters
string
required
Kalshi event ticker (e.g.,
"KXFEDDECISION-26JAN")Returns
Event information including all associated markets, their metadata, and current state.Example
Get Event Metadata
Retrieve metadata for a Kalshi event, including human-readable information and timestamps.getEventMetadata
Parameters
string
required
Kalshi event ticker (e.g.,
"KXFEDDECISION-26JAN")Returns
Event metadata including title, description, category, and important dates.Example
List Markets
Filter Kalshi markets by event, series, or status.getMarkets
Parameters
All parameters are optional. Omit all parameters to retrieve all markets.string
Filter by Kalshi series ticker (e.g.,
"KXPREZ")string
Filter by Kalshi event ticker (e.g.,
"KXFEDDECISION-26JAN")string
Filter by market status:
"active", "closed", or "settled"string
Maximum number of markets to return (max 200)
Returns
List of markets matching the filter criteria, including bid/ask prices, volume, and metadata.Examples
Get all active markets:Get Market Price History
Retrieve historical YES probability for a market. Returns mean (VWAP) price per candlestick period, matching Kalshi’s official price charts.getMarketHistory
Parameters
string
required
Market ticker (e.g.,
"KXBTC-25JAN03-B101")number
Start timestamp in Unix seconds. Defaults to 30 days ago.
number
End timestamp in Unix seconds. Defaults to now.
number
Candle interval in minutes (e.g.,
60 for 1 hour, 1440 for 1 day). Defaults to 60.Returns
Array of price points, each containing:timestamp- Unix timestamp (seconds) at end of periodyes_price- Mean YES price for the period (0-1 probability, VWAP)
Examples
Get last 24 hours (default):Get System Information
Retrieve system configuration and contract addresses.getInfo
Returns
System information including vault addresses, USDC addresses, and supported chains.Example
Complete Market Workflow Example
Here’s a complete example showing how to discover and monitor a market:Error Handling
All methods throw errors when the API request fails:Important Notes
- Market status can be:
unopened,open,closed, orsettled - All dates are returned as ISO 8601 strings
- The
getInforesponse is cached and safe to call frequently