在Kalshi上交易ETH价格分箱市场,利用所有分箱总和必须为100%的约束。当总和不符时,识别错误定价的分箱并执行交易...
This is a template. The default signal uses the 100% sum constraint on price bins -- remix it with implied distribution fitting, volatility smile analysis, or cross-venue arbitrage. The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Kalshi ETH price markets are structured as mutually exclusive bins (e.g., "ETH above $3000", "ETH $2500-$3000") that must sum to exactly 100%. When retail flow pushes individual bins out of alignment, the sum deviates from 100% and creates structural arbitrage.
Key advantages:
sum_tolerance from 100%, flag the groupfair = current / total_sum|fair - market| >= entry_edgeBinMarket PFair P (normalized)EdgeActionETH $2000-$250025%23.1%-1.9%HoldETH $2500-$300035%32.4%-2.6%HoldETH $3000-$350030%27.8%-2.2%HoldETH above $350018%16.7%-1.3%Hold**Sum****108%****100%**Overpriced
conviction = min(|edge| / entry_edge, 2.0) / 2.0size = max($5.00, conviction * MAX_POSITION_USD)ParameterDefaultNotesEntry edge8%Min per-bin edge to tradeExit threshold45%Sell when position price reaches thisMax position size$5.00 USDCPer marketMax trades per run3Rate limitingSum tolerance5%Min sum deviation to trigger analysisMax slippage15%Skip if slippage exceedsMin liquidity$0Disabled by default
bash
clawhub install kalshi-eth-bin-distribution-trader
Requires: SIMMER_API_KEY and SOLANA_PRIVATE_KEY environment variables.
Cron is set to null -- the skill does not run on a schedule until you configure it in the Simmer UI.
The skill defaults to dry-run mode. Real trades only execute when --live is passed explicitly.
ScenarioModeFinancial riskpython trader.pyDry runNoneCron / automatonDry runNonepython trader.py --liveLive (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.
VariableRequiredNotesSIMMER_API_KEYYesTrading authority -- keep this credential private.SOLANA_PRIVATE_KEYFor liveBase58-encoded Solana private key for DFlow transactions.
All risk parameters are declared in clawhub.json as tunables and adjustable from the Simmer UI without code changes.
VariableDefaultPurposeSIMMER_ETH_BINDIST_ENTRY_EDGE``0.08Min per-bin edge to trigger tradeSIMMER_ETH_BINDIST_EXIT_THRESHOLD``0.45Sell position when price reaches this levelSIMMER_ETH_BINDIST_MAX_POSITION_USD``5.00Max USDC per tradeSIMMER_ETH_BINDIST_MAX_TRADES_PER_RUN``3Max trades per execution cycleSIMMER_ETH_BINDIST_SLIPPAGE_MAX``0.15Max slippage before skipping (15%)SIMMER_ETH_BINDIST_MIN_LIQUIDITY``0Min market liquidity USD (0 = disabled)SIMMER_ETH_BINDIST_SUM_TOLERANCE``0.05Min bin sum deviation to trigger analysis
simmer-sdk is published on PyPI by Simmer Markets.
Review the source before providing live credentials if you require full auditability.