← 返回
未分类 Key 中文

Kalshi Crypto Monotonicity Trader

Enforces monotonicity constraints on crypto price-level markets on Kalshi. P(BTC > $110k) must always >= P(BTC > $120k). Trades violations by buying underpri...
对Kalshi上加密货币价格层市场强制单调性约束,P(BTC>$110k) 必须始终 ≥ P(BTC>$120k)。若违背则通过买入低估的合约进行套利。
diagnostikon diagnostikon 来源
未分类 clawhub v1.0.5 1 版本 100000 Key: 需要
★ 0
Stars
📥 349
下载
💾 0
安装
1
版本
#latest

概述

Kalshi Crypto Monotonicity Trader

> This is a template.

> The default signal enforces monotonicity on crypto price-level bins -- remix it with real-time order book data, implied volatility surfaces, or cross-exchange price feeds.

> The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.

Strategy Overview

Crypto price-level markets on Kalshi price "Will BTC be above $X?" for various thresholds. By definition, P(BTC > $110k) >= P(BTC > $120k) because the first event subsumes the second. When the market violates this, we capture the arbitrage by buying the underpriced contract and selling the overpriced one.

Key advantages:

  • Pure math arbitrage -- no model or opinion needed, just logical consistency
  • Works for BTC and ETH -- any asset with multiple price-level markets
  • Self-correcting -- violations close quickly, so early detection matters

Signal Logic

Monotonicity Check

  1. Fetch all crypto price-level markets (BTC above $X, ETH above $Y)
  2. Group by asset, sort by price level ascending
  3. Verify P(above lower level) >= P(above higher level) for all pairs
  4. When violation exceeds violation_threshold, generate paired trades

Example (with defaults)

| Market | Level | Market P | Expected | Violation |

|--------|-------|----------|----------|-----------|

| BTC > $100k | $100,000 | 45% | >= 35% | -- |

| BTC > $110k | $110,000 | 35% | >= 20% | -- |

| BTC > $120k | $120,000 | 38% | <= 35% | 3% |

In the last row, P(>$120k) = 38% > P(>$110k) = 35%, violating monotonicity by 3%.

Remix Ideas

  • Order book depth: Weight violations by available liquidity at each level
  • Implied vol surface: Use violation patterns to infer mispriced implied volatility
  • Cross-exchange arb: Compare Kalshi levels to Deribit options strikes

Risk Parameters

| Parameter | Default | Notes |

|-----------|---------|-------|

| Violation threshold | 3% | Min probability gap to trigger trade |

| Exit threshold | 45% | Sell when position price reaches this |

| Max position size | $5.00 USDC | Per market |

| Max trades per run | 3 | Rate limiting |

| Max slippage | 15% | Skip if slippage exceeds |

| Min liquidity | $0 | Disabled by default |

Installation & Setup

clawhub install kalshi-crypto-monotonicity-trader

Requires: SIMMER_API_KEY and SOLANA_PRIVATE_KEY environment variables.

Cron Schedule

Cron is set to null -- the skill does not run on a schedule until you configure it in the Simmer UI.

Safety & Execution Mode

The skill defaults to dry-run mode. Real trades only execute when --live is passed explicitly.

| Scenario | Mode | Financial risk |

|----------|------|----------------|

| python trader.py | Dry run | None |

| Cron / automaton | Dry run | None |

| python trader.py --live | Live (Kalshi via DFlow) | Real USDC |

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.

Required Credentials

| Variable | Required | Notes |

|----------|----------|-------|

| SIMMER_API_KEY | Yes | Trading authority. Treat as a high-value credential. |

| SOLANA_PRIVATE_KEY | Yes | Base58-encoded Solana private key for live trading. |

Tunables (Risk Parameters)

All risk parameters are declared in clawhub.json as tunables and adjustable from the Simmer UI without code changes.

| Variable | Default | Purpose |

|----------|---------|---------|

| SIMMER_CRYPTO_MONO_VIOLATION_THRESHOLD | 0.03 | Min probability gap between adjacent levels to trigger trade |

| SIMMER_CRYPTO_MONO_EXIT_THRESHOLD | 0.45 | Sell position when price reaches this level |

| SIMMER_CRYPTO_MONO_MAX_POSITION_USD | 5.00 | Max USDC per trade |

| SIMMER_CRYPTO_MONO_MAX_TRADES_PER_RUN | 3 | Max trades per execution cycle |

| SIMMER_CRYPTO_MONO_SLIPPAGE_MAX | 0.15 | Max slippage before skipping (0.15 = 15%) |

| SIMMER_CRYPTO_MONO_MIN_LIQUIDITY | 0 | Min market liquidity USD (0 = disabled) |

Dependency

simmer-sdk is published on PyPI by Simmer Markets.

  • PyPI: https://pypi.org/project/simmer-sdk/
  • GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
  • Publisher: hello@simmer.markets

Review the source before providing live credentials if you require full auditability.

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-05-07 05:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 128 📥 42,243
ai-agent

Kalshi Fed Speech Signal Trader

diagnostikon
在Kalshi上依据市场问题文本中的鹰派/鸽派情绪信号交易美联储利率市场,并通过关键词典对净情绪进行评分。
★ 0 📥 444
professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 278 📥 57,747