Agent skill

Kalshi Crypto Index Markets

by agiprolabs in agiprolabs/claude-trading-skills

Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing…

MITAuto-check passedBusiness, Finance & HR

Install Kalshi Crypto Index Markets

skills CLI
$ npx skills add agiprolabs/claude-trading-skills --skill kalshi-crypto-index-markets -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install agiprolabs/claude-trading-skills kalshi-crypto-index-markets --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/kalshi-crypto-index-markets .claude/skills/kalshi-crypto-index-markets && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kalshi-crypto-index-markets
GitHub stars
410
Token cost
~2.1k tokens
SKILL.md length
1,042 words
Files
2 (incl. references)
Skills in repo
68
Repo updated
First seen
Licence
MIT

At a glance

Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing…

  • Works in 3 steps: The settlement price source (exchange,… → The settlement time and timezone. → Whether the bracket is…
  • Tasks that involve Crypto and DeFi analysis
  • SKILL.md covers Series & Market-Type Mapping, Bracket Structure, Gaussian P(YES) on Price/Vol and Decision Timing —…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Kalshi Crypto Index Markets is an agent skill from agiprolabs/claude-trading-skills. Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing, longshot-sell edge with honest evidence bounds

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/structure-and-modeling.md`).

It sits in Business, Finance & HR, covering Crypto and DeFi analysis. It works with Kalshi. The repository describes itself as: 68 trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools. The licence is MIT.

When your agent uses it

  • Tasks that involve Crypto and DeFi analysis

Example prompts

  • “/kalshi-crypto-index-markets”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. The settlement price source (exchange, composite, or Kalshi-computed).
  2. The settlement time and timezone.
  3. Whether the bracket is inclusive/exclusive at the boundary.

What it can do on your machine

Read from SKILL.md and the folder at commit 981e1d7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kalshi Crypto Index Markets loads about 2.1k tokens when it runs, and up to ~3.9k if it reads all its reference files. Until then it costs about 68 tokens; SKILL.md has 1,042 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~68
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from agiprolabs/claude-trading-skills at commit 981e1d7, republished under its MIT licence (© agiprolabs). 1,042 words, ~2,130 tokens.

Download SKILL.mdSave it as .claude/skills/kalshi-crypto-index-markets/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
kalshi-crypto-index-markets
description
Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing, longshot-sell edge with honest evidence bounds

Kalshi Crypto & Index Range Markets

Kalshi lists daily (and for crypto, hourly) range bracket markets on the level of four liquid underlyings: S&P 500, Nasdaq-100, Bitcoin, and Ethereum. The math is the same partition-and-Gaussian framework as weather brackets — the variable is just price/return and σ comes from the underlying's realized or implied volatility, not a temperature model.

Cross-references: for Kalshi API mechanics see kalshi-api; for the strategy, sizing, and backtesting framework see prediction-market-strategy; for the temperature counterpart see kalshi-weather-markets; for the shared bracket/overround formulas see prediction-markets/references/brackets-and-settlement.md.


Series & Market-Type Mapping

python
SERIES_MARKET = {
    "KXINX":       "index",   # S&P 500 index level
    "KXNASDAQ100": "index",   # Nasdaq-100 index level
    "KXBTC":       "crypto",  # Bitcoin price (USD)
    "KXETH":       "crypto",  # Ethereum price (USD)
}
  • market_type = "index" — daily range only; underlying is the index points level at the official market close.
  • market_type = "crypto" — daily and hourly range markets; BTC and ETH each have multiple hourly events running in parallel with the daily.

Cadence is higher than weather: crypto hourlies open and settle throughout the day; daily markets open the prior session and settle at the reference close.


Bracket Structure

Each event is a mutually exclusive, collectively exhaustive partition of the underlying's possible values at settlement:

  • An interior bracket B<center> covers a contiguous price band (floor to cap, both-ends-inclusive). Bracket widths are set per-market — read the event's market list; do not assume a fixed width.
  • Two open-tail markets anchor the partition: a less-than (below the lowest bracket floor) and a greater-than (above the highest bracket cap).
  • At settlement exactly one bracket is YES; all others are NO.

The overround (sum of all YES prices) is typically > 1.0. The excess is concentrated in the cheap tails — the same favorite–longshot bias seen in weather markets. See prediction-markets/references/brackets-and-settlement.md for the overround formula.


Gaussian P(YES) on Price/Vol

Given a price forecast distribution N(μ, σ) for the underlying at settlement, with bracket covering [floor, cap]:

# interior bracket
P(YES) = Φ((cap − μ) / σ) − Φ((floor − μ) / σ)

# open-tail, "greater than cap"
P(YES) = 1 − Φ((cap − μ) / σ)

# open-tail, "less than floor"
P(YES) = Φ((floor − μ) / σ)

Φ is the standard normal CDF. Unlike temperature brackets (which settle on integers), price brackets settle on a continuous reference price — the half-integer continuity correction used for weather is not applicable here. Do not add ±0.5.

Sourcing σ
  • Realized vol: rolling 5- or 20-day realized volatility of the underlying, scaled to the settlement horizon.
  • Implied vol: the ATM IV from listed options (SPX/NDX for index, CME/Deribit for crypto) is a forward-looking σ that already embeds the market's distributional view for the horizon.
  • Hourly markets: for BTC/ETH hourlies, σ is the 1-hour IV or intraday realized vol. Σ shrinks rapidly — even small absolute moves land in a different bracket. Sensitivity is high; prefer IV-derived σ.

For daily markets, a simple log-return diffusion gives σ_daily ≈ σ_annual / √252 for index, or the equivalent annualized vol / √365 for crypto. Express in price units (not %) before inserting into the formula.


Decision Timing — Close-Offset, Not a City Hour

This is the key difference from weather markets.

Weather settles on a daily extreme that occurs at some unknown intraday time. The decision book is read near the likely peak/trough (a city-local hour).

Crypto and index markets settle at a fixed reference close:

  • Daily S&P 500 / Nasdaq-100: the official market close (4:00 PM ET).
  • Daily BTC/ETH: a defined reference close published in the market's rulebook.
  • Hourly BTC/ETH: the close of each hour interval per the rulebook.

The practical convention used in production:

python
DECISION_OFFSET_MINUTES = 120   # read book ~2h before settlement close
decision_ts = settlement_close_ts - timedelta(minutes=DECISION_OFFSET_MINUTES)

This offset balances information freshness (IV and order-book signal) against the risk of being front-run by news that drops in the final window. Tune per-series based on your fill-rate observations.


Settlement — Verify the Rulebook Reference

Settlement is on Kalshi's own result field. Do not re-derive from an external feed. The exact reference price for each series (e.g., official SPX close vs. a crypto composite) is specified per-market in the Kalshi rulebook.

Honest caveat: the exact reference price spec was not pinned for every series during development. Before trading any new series, read the market's rulebook and confirm:

  1. The settlement price source (exchange, composite, or Kalshi-computed).
  2. The settlement time and timezone.
  3. Whether the bracket is inclusive/exclusive at the boundary.

Backtesting against a price feed that differs from the true settlement source is the primary way to manufacture fake edge in these markets.


Show full SKILL.md (381 more words)Show less

Edge: Longshot-Sell Generalization

The favorite–longshot bias generalizes from weather to index and crypto brackets. Tail brackets are systematically overpriced relative to a Gaussian model calibrated to realized/implied vol; interior brackets near the current underlying level are fairly priced or underpriced.

Evidence (be precise about depth)

From production testing with a rotating CV approach, Kalshi-settled outcomes, fee-inclusive:

Market typeSweet bandEdge directionSampleResult
IndexMarket-implied P ∈ [0.05, 0.20]Longshot-sell (short tail brackets)~50 trades~+1.7% taker / ~+9% maker
Crypto daily——Too sparseInconclusive
Crypto hourly——Too sparseInconclusive

Interpret conservatively. ~50 trades is not a stable estimate; confidence intervals are wide. The index result is directionally consistent with the weather finding and prior literature on longshot bias, but treat it as a hypothesis to validate forward, not a confirmed edge.

The HFT Caveat (critical for hourlies)

Crypto and index markets settle on public, real-time price ticks. The underlying is continuously quoted on liquid venues with sub-millisecond latency. This means:

  • The information content of any bracket price is rapidly arbitraged by HFT and market-maker algos watching the same tick.
  • Latency front-running — buying or selling brackets based on price moves — is a colocation/HFT game. From a retail connection you will be consistently on the wrong side of news-driven bracket repricing.
  • The retail-feasible angle is the structural longshot-sell (exploiting the persistent overpricing in cheap tails that is stable across market regimes), not speed-based positioning.
  • Hourly crypto markets are the most HFT-contested of all Kalshi markets. Maker fills on tail brackets may be scarce precisely when the edge is largest.

Market Microstructure Notes

  • Overround is the primary microstructure signal. For a partition of N brackets, overround = Σ P_yes. When overround > 1.10 in the tails, the aggregate tail sell has positive expected value before fees; after Kalshi taker fees (~7 cents/$1 per leg) the bar is higher. Maker rebates change the math substantially.
  • Thin books: individual bracket markets on hourly crypto may show wide spreads and low depth. Model a realistic fill at a depth level before sizing.
  • Basket dutch: selling the complete set of tail brackets is not trivially an arb even when overround > 1.0; fees per leg plus execution uncertainty can eliminate the overround advantage. See prediction-market-strategy for the dutch/portfolio treatment.

Files

References
  • references/structure-and-modeling.md — Series details, bracket structure, σ-from-vol modeling, decision timing, settlement

© agiprolabs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/kalshi-crypto-index-markets of agiprolabs/claude-trading-skills.

  • SKILL.md
  • references/structure-and-modeling.md

Open the folder on GitHubat commit 981e1d7

Compare with similar skills

Kalshi Crypto Index Markets next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kalshi Crypto Index Markets compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kalshi Crypto Index Markets this skillagiprolabs/claude-trading-skills410—~2.1kAutomated safety check: PassMIT
Predexon Prediction Market DataBlockRunAI/ClawRouter6.6k—~4.7kAutomated safety check: PassMIT
Futu OpenAPI Market and Trading Assistantqusong0627/QuantMind1.7k—~3.3kAutomated safety check: NotesAGPL-3.0
Surf Crypto Data APIBlockRunAI/blockrun-mcp391—~1.7kAutomated safety check: PassMIT
Technical Analysttradermonty/claude-trading-skills3k4 repos~4.6kAutomated safety check: PassMIT
Digital Oraclekomako-workshop/digital-oracle878—~5.9kAutomated safety check: PassMIT

Similar skills

  • Predexon Prediction Market Data

    BlockRunAI/ClawRouter

    Reads structured prediction market data for Polymarket, Kalshi and other venues through a local BlockRun gateway: markets, search, leaderboards, wallet analytics and odds.

    6.6k GitHub stars~4.7k tokensUpdated 5 days ago
    Business, Finance & HRAuto-check passed
  • Queries Futu quotes, options, fundamentals and accounts and places orders through the Futu OpenAPI Python SDK, defaulting to simulated trading.

    1.7k GitHub stars~3.3k tokensUpdated today
    Business, Finance & HRAuto-check: notes
  • Surf Crypto Data API

    BlockRunAI/blockrun-mcp

    Routes crypto market, on-chain, wallet and prediction-market lookups to the Surf data API through a local ClawRouter, paid per call.

    391 GitHub stars~1.7k tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed
  • Technical Analyst

    tradermonty/claude-trading-skills

    This skill should be used when analyzing weekly price charts for stocks, stock indices, cryptocurrencies, or forex pairs.

    3k GitHub starsUsed in 4 repos~4.6k tokens
    Business, Finance & HRAuto-check passed
  • Digital Oracle

    komako-workshop/digital-oracle

    Answer prediction questions using market trading data, not opinions.

    878 GitHub stars~5.9k tokensUpdated 2 mo ago
    Business, Finance & HRAuto-check passed
  • Polyclaw

    chainstacklabs/polyclaw

    Trade on Polymarket via split + CLOB execution. An agent skill from chainstacklabs/polyclaw.

    359 GitHub starsUsed in 1 repo~2k tokens
    Business, Finance & HRAuto-check passed

More from agiprolabs/claude-trading-skills

All 68 skills in this repo
  • Backtrader

    agiprolabs/claude-trading-skills

    Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Birdeye API

    agiprolabs/claude-trading-skills

    Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity

    410 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Coingecko API

    agiprolabs/claude-trading-skills

    Broad crypto market data from CoinGecko covering 13,000+ tokens.

    410 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Cointegration Analysis

    agiprolabs/claude-trading-skills

    Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis

    410 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Copy Trading

    agiprolabs/claude-trading-skills

    Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Correlation Analysis

    agiprolabs/claude-trading-skills

    Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation

    410 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Kalshi Crypto Index Markets

What does Kalshi Crypto Index Markets do?

Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing…. Kalshi Crypto Index Markets is an agent skill from agiprolabs/claude-trading-skills.

When should I use Kalshi Crypto Index Markets?

Kalshi Crypto Index Markets fits situations like: tasks that involve Crypto and DeFi analysis.

How do I install Kalshi Crypto Index Markets in Claude Code?

Run `npx skills add agiprolabs/claude-trading-skills --skill kalshi-crypto-index-markets -a claude-code`. Or copy the skill folder (skills/kalshi-crypto-index-markets in agiprolabs/claude-trading-skills) into .claude/skills/kalshi-crypto-index-markets in your project. Claude Code loads it when a task matches its description.

How do I install Kalshi Crypto Index Markets in Codex?

Run `npx skills add agiprolabs/claude-trading-skills --skill kalshi-crypto-index-markets -a codex`. Or copy the skill folder (skills/kalshi-crypto-index-markets in agiprolabs/claude-trading-skills) into .agents/skills/kalshi-crypto-index-markets in your project. Codex loads it when a task matches its description.

Can I use Kalshi Crypto Index Markets in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agiprolabs/claude-trading-skills --skill kalshi-crypto-index-markets -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kalshi-crypto-index-markets, .gemini/skills/kalshi-crypto-index-markets, .github/skills/kalshi-crypto-index-markets and .opencode/skills/kalshi-crypto-index-markets in your project.

What does Kalshi Crypto Index Markets need to run?

SKILL.md names no scripts, command-line tools or credentials: Kalshi Crypto Index Markets is instructions for the agent only. Our summary lists: Python 3.

Does Kalshi Crypto Index Markets access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kalshi Crypto Index Markets safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kalshi Crypto Index Markets use?

Kalshi Crypto Index Markets is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kalshi Crypto Index Markets use?

About 2.1k tokens (SKILL.md is roughly 8.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Kalshi Crypto Index Markets?

Skills that share tags, products or a category with Kalshi Crypto Index Markets: Predexon Prediction Market Data (BlockRunAI/ClawRouter, 6.6k stars), Futu OpenAPI Market and Trading Assistant (qusong0627/QuantMind, 1.7k stars), Surf Crypto Data API (BlockRunAI/blockrun-mcp, 391 stars) and Technical Analyst (tradermonty/claude-trading-skills, 3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kalshi Crypto Index Markets?

agiprolabs (a GitHub user) maintains it in agiprolabs/claude-trading-skills, which has 410 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on September 3, 2026.

Source: agiprolabs/claude-trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.