During development, you can use the developer endpoints without an API key. For production use, request an API key for higher rate limits.
Set up
Imports, env config, and the wallet/connection used across every step.
Imports, env, and wallet
Imports, env, and wallet
Discover Kalshi markets
Use the Metadata API to fetch Kalshi events. Filter by series ticker, category, or tag to find relevant markets.
Full filtering options.
Discover Kalshi markets
Discover Kalshi markets
Verify KYC
Kalshi requires KYC before a wallet can receive outcome tokens. Check verification status using the Proof API before submitting a trade.
Cache the
Verify KYC
Verify KYC
Unverified users can still get quotes. Omit
userPublicKey from the /order request to return pricing without requiring verification. This lets users browse and preview markets before completing KYC./verify response on your backend with a short TTL rather than calling it on every trade. Full Proof integration guide.Buy YES or NO outcome tokens
Trading is a single
/order call. Set inputMint to USDC (or CASH) and outputMint to either yesMint or noMint.Buy YES or NO outcome tokens
Buy YES or NO outcome tokens
Track positions
After trading, the user holds YES or NO outcome tokens. Use
Full portfolio view with balances and market metadata.
filter_outcome_mints to identify which wallet mints are outcome tokens.Track positions
Track positions
Redeem after settlement
Once the market is determined, check
market.result and redeem by selling the outcome token back to USDC. For Kalshi markets, also verify redemptionStatus === "open" before redeeming.Redeem after settlement
Redeem after settlement
Some Kalshi markets have scalar (non-binary) outcomes where both YES and NO tokens are partially redeemable. Full redemption flow.
Related Resources
Find Markets
Advanced market discovery: filter by category, tag, and status.
Track User Positions
Full portfolio view with balances and market metadata.
Monitor Market Lifecycle
Track status changes and know when redemption opens.
Redeem Outcome Tokens
Complete redemption flow including scalar outcome payouts.
API Routes
GET /api/v1/events: fetch Kalshi prediction market events and nested marketsPOST /api/v1/filter_outcome_mints: identify outcome token mints in a walletGET /order: get a quote and signed transaction for any trade