Kalshi markets list
POST /api/kalshi-marketsList Kalshi markets (CFTC-regulated US event contracts). Send POST /api/kalshi-markets with no required fields (3 optional) and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with count, cursor, markets and source.
Filter by status (open/closed/settled/unopened) or by event ticker. Returns yes/no bid/ask, last price, volume, open interest, and the resting contract size at the best yes bid and ask (yesBidSize/yesAskSize). Covers US-regulated markets and Kalshi-only categories (weather, economic data).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
status | string | no | Filter by status: open, closed, settled, unopened. |
eventTicker | string | no | Filter to a specific event ticker. |
limit | number | no | Max markets (1-100, default 20). |
Example request
curl -i -X POST https://agent402.tools/api/kalshi-markets \
-H "Content-Type: application/json" \
-d '{"status":"open","limit":5}'
Without payment this returns HTTP 402 Payment Required with the exact price for kalshi-markets; any x402 v2 or MPP client pays it and retries.
Example response
{
"count": 1,
"cursor": "next-page-token",
"markets": [
{
"ticker": "PRES-24-DEM",
"eventTicker": "PRES-24",
"title": "Will the Democratic nominee win?",
"subtitle": "2026 US Presidential election",
"status": "open",
"openTime": "2026-01-01T00:00:00Z",
"closeTime": "2026-11-03T23:59:00Z",
"yesBid": 0.45,
"yesAsk": 0.47,
"noBid": 0.53,
"noAsk": 0.55,
"lastPrice": 0.46,
"volume": 12345,
"openInterest": 5678,
"yesBidSize": 471.53,
"yesAskSize": 323.1,
"venue": "kalshi",
"venueUrl": "https://kalshi.com/markets/pres-24-dem"
}
],
"source": "kalshi"
}
| Field | Type | Always present | In the example |
|---|---|---|---|
count | number | yes | 1 |
cursor | string | yes | next-page-token |
markets | array of objects | yes | 1 item in the example |
source | string | yes | kalshi |
From an MCP client
catalog.call {
"slug": "kalshi-markets",
"params": {
"status": "open",
"limit": 5
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for kalshi-markets; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
- Every field is optional. An input the tool rejects returns an HTTP 4xx whose body carries
error,tool,expected,requiredandexample. - A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
GETorHEADto /api/kalshi-markets returns the same 402 quote, so the price can be read without a body. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/kalshi-markets", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"status": "open",
"limit": 5
}),
});
Related tools
Kalshi event detail
POST /api/kalshi-eventGet full detail for a single Kalshi event with all its nested markets. Mutually-exclusive flag tells you whether the mar…
Kalshi live data behind an event
POST /api/kalshi-live-dataThe live feed a Kalshi event settles on, from Kalshi's free live_data tier: a crypto event returns the CF Benchmarks pri…
Kalshi city temperature index
POST /api/kalshi-weather-indexKalshi's own minute-resolution city temperature index (Fahrenheit), the series its hourly temperature markets settle on,…
Known-address label lookup
POST /api/address-labelLabel a known EVM address from a curated, committed dataset: major stablecoin + token contracts (the USDC and USDG contr…
Wallet token transfers (filtered)
POST /api/asset-transfersRecent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…
Block info
GET /api/block-infoHeader-level detail for one block on Ethereum, Base, Polygon, Arbitrum, or Optimism: hash, timestamp (unix + ISO), trans…