← Back to Skills Marketplace
diagnostikon

Kalshi Econ Revision Drift Trader

by diagnostikon · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
90
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install kalshi-econ-revision-drift-trader
Description
Trades CPI bin markets on Kalshi accounting for systematic upward revision bias (~0.03 pp) in initial CPI releases. Markets pricing off initial releases unde...
README (SKILL.md)

\r \r

Kalshi Econ Revision Drift Trader\r

\r

This is a template. \r The default signal uses the well-documented CPI revision bias (+0.03 pp) to shift the fair probability distribution -- remix it with seasonal adjustment patterns, BLS methodology changes, or real-time nowcast data. \r The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.\r \r

Strategy Overview\r

\r BLS CPI initial releases are systematically revised upward by approximately 0.03 percentage points. Markets that resolve on the initial release effectively ignore this revision bias, creating a persistent edge. This skill shifts the CPI probability distribution by the revision bias and trades bins where the shift creates meaningful mispricing.\r \r Key advantages:\r

  • Documented statistical bias -- BLS revision history from 2000-2024 confirms the upward drift\r
  • Structural edge -- as long as markets price off initial releases, the bias persists\r
  • Directional prediction -- higher CPI bins are systematically underpriced\r
  • No timing dependency -- the bias exists regardless of the current CPI level\r \r

Signal Logic\r

\r

Revision Drift Model\r

\r

  1. Parse CPI bin markets and extract probability-weighted expected CPI mean\r
  2. Compute "initial release" bin probabilities using normal distribution\r
  3. Compute "revision-adjusted" bin probabilities by shifting mean +0.03 pp\r
  4. Edge = revised_prob - market_price for each bin\r
  5. Trade when |edge| >= entry_edge\r \r

Revision Statistics\r

\r | Metric | Value | Source |\r |--------|-------|--------|\r | Mean revision | +0.03 pp | BLS CPI revision history 2000-2024 |\r | Revision std | 0.05 pp | Same dataset |\r | Direction | Upward | Consistent across decades |\r | Impact | Higher bins underpriced | Shifts CDF right |\r \r

Example\r

\r If CPI market-implied mean is 2.80%:\r \r | Bin | Initial Prob | Revised Prob | Revision Edge |\r |-----|-------------|-------------|---------------|\r | \x3C 2.0% | 5.5% | 4.9% | -0.6% |\r | 2.0-2.5% | 22.7% | 21.5% | -1.2% |\r | 2.5-3.0% | 38.3% | 38.2% | -0.1% |\r | 3.0-3.5% | 24.6% | 25.8% | +1.2% |\r | > 3.5% | 8.9% | 9.6% | +0.7% |\r \r

Conviction-Based Sizing\r

\r

  • conviction = min(|edge| / entry_edge, 2.0) / 2.0\r
  • size = max($1.00, conviction * MAX_POSITION_USD)\r
  • Larger edge = larger position, capped at MAX_POSITION_USD\r \r

Remix Ideas\r

\r

  • Seasonal adjustment: CPI revisions vary by month (e.g., January effect)\r
  • BLS methodology tracking: New CPI basket weights change revision patterns\r
  • Nowcast overlay: Combine revision bias with Cleveland Fed CPI nowcast\r
  • Multi-release: Track preliminary, final, and revised releases separately\r \r

Risk Parameters\r

\r | Parameter | Default | Notes |\r |-----------|---------|-------|\r | Entry edge | 8% | Min revised-vs-market divergence to trade |\r | Exit threshold | 45% | Sell when position price reaches this |\r | Max position size | $5.00 USDC | Per market |\r | Max trades per run | 3 | Rate limiting |\r | Max slippage | 15% | Skip if slippage exceeds |\r | Min liquidity | $0 | Disabled by default |\r \r

Installation & Setup\r

\r

clawhub install kalshi-econ-revision-drift-trader\r
```\r
\r
Requires: `SIMMER_API_KEY` and `SOLANA_PRIVATE_KEY` environment variables.\r
\r
## Cron Schedule\r
\r
Cron is set to `null` -- the skill does not run on a schedule until you configure it in the Simmer UI.\r
\r
## Safety & Execution Mode\r
\r
**The skill defaults to dry-run mode. Real trades only execute when `--live` is passed explicitly.**\r
\r
| Scenario | Mode | Financial risk |\r
|----------|------|----------------|\r
| `python trader.py` | Dry run | None |\r
| Cron / automaton | Dry run | None |\r
| `python trader.py --live` | Live (Kalshi via DFlow) | Real USDC |\r
\r
The automaton cron is set to `null` -- it does not run on a schedule until you configure it in the Simmer UI. `autostart: false` means it won't start automatically on install.\r
\r
## Required Credentials\r
\r
| Variable | Required | Notes |\r
|----------|----------|-------|\r
| `SIMMER_API_KEY` | Yes | Trading authority. Treat as a high-value credential. |\r
| `SOLANA_PRIVATE_KEY` | Yes | Base58-encoded Solana private key for live trading. |\r
\r
## Tunables (Risk Parameters)\r
\r
All risk parameters are declared in `clawhub.json` as `tunables` and adjustable from the Simmer UI without code changes.\r
\r
| Variable | Default | Purpose |\r
|----------|---------|---------|\r
| `SIMMER_ECON_REV_ENTRY_EDGE` | `0.08` | Min divergence between revised fair and market to trigger trade |\r
| `SIMMER_ECON_REV_EXIT_THRESHOLD` | `0.45` | Sell position when price reaches this level |\r
| `SIMMER_ECON_REV_MAX_POSITION_USD` | `5.00` | Max USDC per trade |\r
| `SIMMER_ECON_REV_MAX_TRADES_PER_RUN` | `3` | Max trades per execution cycle |\r
| `SIMMER_ECON_REV_SLIPPAGE_MAX` | `0.15` | Max slippage before skipping (0.15 = 15%) |\r
| `SIMMER_ECON_REV_MIN_LIQUIDITY` | `0` | Min market liquidity USD (0 = disabled) |\r
\r
## Dependency\r
\r
`simmer-sdk` is published on PyPI by Simmer Markets.\r
- PyPI: https://pypi.org/project/simmer-sdk/\r
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk\r
- Publisher: [email protected]\r
\r
Review the source before providing live credentials if you require full auditability.\r
Usage Guidance
This skill appears to implement the described CPI revision-drift trading strategy, but there are a few inconsistencies and sensitive requests you should confirm before installing: - Metadata mismatch: the registry summary at the top lists no required env vars, but clawhub.json and the Installation section require SIMMER_API_KEY and SOLANA_PRIVATE_KEY. Verify which credentials are actually required. - High-value secrets: SOLANA_PRIVATE_KEY is a blockchain private key. Only provide it if you fully trust the simmer-sdk implementation and you understand how the key is used, stored, and protected (ideally provide least-privilege keys or use a signing service/hardware wallet if supported). - Audit simmer-sdk: the package is installed from PyPI; review its code (and any network endpoints it calls) before giving live trading credentials. SKILL.md itself recommends this. - Undeclared env hooks: trader.py reads AUTOMATON_MAX_BET (and may read other env vars). Ask the author for a full list of environment variables and their effects to avoid surprise behavior. - Trade journal integration: the script will attempt to import 'tradejournal' or 'skills.tradejournal' if available — check where logs are sent if that package exists in your environment. If you want to proceed safely: run the skill in dry-run mode (the default) without providing SOLANA_PRIVATE_KEY to inspect behavior; review network calls made by simmer-sdk; and consider using a restricted/test account or ephemeral key for live runs.
Capability Analysis
Type: OpenClaw Skill Name: kalshi-econ-revision-drift-trader Version: 1.0.1 The skill is a trading bot for Kalshi CPI markets that implements a strategy based on historical inflation revision bias. The code in `trader.py` uses the `simmer-sdk` to fetch market data, calculate fair value using a normal distribution model, and execute trades with built-in safeguards for slippage and liquidity. While it requires sensitive credentials (`SIMMER_API_KEY` and `SOLANA_PRIVATE_KEY`) for live execution, these are standard for its stated purpose, and the script defaults to a safe dry-run mode.
Capability Tags
cryptorequires-wallet
Capability Assessment
Purpose & Capability
The skill's name/description (trading Kalshi CPI bin markets using a CPI revision bias) aligns with the included code and use of the simmer-sdk. Requiring SIMMER_API_KEY is expected. Requiring a SOLANA_PRIVATE_KEY for live execution is plausible given the SKILL.md's note about ‘Kalshi via DFlow/Solana’, but Kalshi is not natively a Solana-based exchange so this architecture should be confirmed (the skill appears to rely on Simmer/DFlow to route/settle trades on Solana). Also: registry metadata at the top says 'required env vars: none' while clawhub.json and SKILL.md require credentials — this metadata mismatch is inconsistent and worth confirming.
Instruction Scope
SKILL.md and trader.py focus on market discovery, probability calculations, and trade plumbing. However there are contradictory declarations inside SKILL.md (header lists only SIMMER_API_KEY while Installation & Setup and clawhub.json require SIMMER_API_KEY and SOLANA_PRIVATE_KEY). The code reads other environment variables (e.g., AUTOMATON_MAX_BET) that are not declared in the manifest. The script optionally imports a 'tradejournal' integration (or skills.tradejournal) which, if present, may log trade data externally — review that integration. No obvious instructions direct data to unknown external endpoints beyond simmer-sdk usage, but confirm what simmer-sdk transmits.
Install Mechanism
This is an instruction-only skill with a Python file; it requires the simmer-sdk package from PyPI (declared in clawhub.json). That is a standard registry install path. There is no arbitrary download URL or archive-extract install present. As the SKILL.md suggests, you should review the simmer-sdk source before giving live credentials.
Credentials
The skill requires two high-value secrets: SIMMER_API_KEY (expected) and SOLANA_PRIVATE_KEY (sensitive). Asking for a blockchain private key is proportionate for a live trading agent that funds/settles via Solana, but it is high-risk and should only be provided after auditing simmer-sdk and understanding where and how the private key will be used/stored. Additionally, the code reads at least one undeclared environment variable (AUTOMATON_MAX_BET) which can affect behavior; any undeclared env hooks are a vector for unexpected control. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request 'always: true' and clawhub.json sets autostart: false. Automaton is 'managed' with an entrypoint, which is normal for a trading skill. There is no indication it modifies other skills' configs or demands permanent platform-wide privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kalshi-econ-revision-drift-trader
  3. After installation, invoke the skill by name or use /kalshi-econ-revision-drift-trader
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Rescan
v1.0.0
Initial release
Metadata
Slug kalshi-econ-revision-drift-trader
Version 1.0.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Kalshi Econ Revision Drift Trader?

Trades CPI bin markets on Kalshi accounting for systematic upward revision bias (~0.03 pp) in initial CPI releases. Markets pricing off initial releases unde... It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.

How do I install Kalshi Econ Revision Drift Trader?

Run "/install kalshi-econ-revision-drift-trader" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Kalshi Econ Revision Drift Trader free?

Yes, Kalshi Econ Revision Drift Trader is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Kalshi Econ Revision Drift Trader support?

Kalshi Econ Revision Drift Trader is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Kalshi Econ Revision Drift Trader?

It is built and maintained by diagnostikon (@diagnostikon); the current version is v1.0.1.

💬 Comments