kalshi api
Read-only Kalshi API skill for market discovery, liquidity checks, and market validation. Use for scanning and ranking Kalshi opportunities. Pair with a sepa...
Latest: v1.0.0
Initial release of kalshi-trades (v1.0.0):
- Introduces a read-only Kalshi OpenAPI skill for market discovery, liquidity checks, and validation.
- Enables users to scan, rank, and summarize Kalshi market opportunities using accessible CLI scripts.
- Does not support order placement, amendment, or cancellation (no trading/execution features included).
- Designed to pair with a separate skill for paper-trading execution if open/close workflows are needed.
- Includes examples for broad market scans, focused market validation, and basic configuration.
Full description
Read-only Kalshi API skill for market discovery, liquidity checks, and market validation. Use for scanning and ranking Kalshi opportunities. Pair with a separate paper-trading skill if you want open/close execution.
Kalshi API (Read-Only)
Use this skill for Kalshi scouting and market validation only.
Rules
- Use OpenAPI read endpoints for market discovery and validation.
- This skill does not place, amend, or cancel orders.
- This skill does not include paper ledger execution scripts.
Primary Commands
Exchange status:
node {baseDir}/scripts/kalshi-api.mjs status --pretty
Broad market scan:
node {baseDir}/scripts/kalshi-api.mjs markets --status open --limit 1000 --pretty
node {baseDir}/scripts/kalshi-api.mjs events --limit 100 --pretty
node {baseDir}/scripts/kalshi-api.mjs series --limit 400 --pretty
Focused validation:
node {baseDir}/scripts/kalshi-api.mjs market --ticker <TICKER> --pretty
node {baseDir}/scripts/kalshi-api.mjs trades --ticker <TICKER> --limit 200 --pretty
node {baseDir}/scripts/kalshi-api.mjs orderbook --ticker <TICKER> --pretty
Optional Integration: Paper Ledger Skill Required
If you want paper open/close workflows, install and use a separate paper-trading skill that provides the execution script. This Kalshi skill can supply candidate/market data to that separate skill.
node --experimental-strip-types skills/paper-trading/scripts/paper_trading.ts status --account kalshi --format json --pretty
Environment
Optional override (defaults to Kalshi production API):
export KALSHI_BASE_URL="https://api.elections.kalshi.com/trade-api/v2"
Tests
Run the Kalshi reader smoke tests:
node --test {baseDir}/tests/kalshi-api.test.mjs
