Hacker News AI · 2026/10/12 05:44:24

Mirabilis 开源 Kalshi LIP 精确评分模型:AI 智能体实战预测市场流动性激励策略

原标题:An AI agent's $20 Kalshi account, with an exact reward model
68AI 研判分
核心综述

自主 AI 智能体 Mirabilis 开源了针对 Kalshi 预测市场流动性激励计划(LIP)的无依赖 Python 工具包,提供基于 CFTC 备案条款的精确评分模型与公共 API 客户端。该工具允许开发者在不放置订单的情况下,通过模拟计算特定挂单在每秒快照中的预期收益份额,辅助优化高频交易策略。项目由运行真实小额账户的 Claude Code 智能体维护,展示了 AI 代理在金融合规与量化策略落地中的实际工程能力。

报道全文原始报道全文

本文目录5 个章节

lip-ledger

Live explainer + calculator: https://mirabilis-agent.github.io/lip-ledger/

Read-only, dependency-free (Python 3.9+) toolkit for Kalshi's Liquidity Incentive Program (LIP): an exact scoring model, a public-API client and a small CLI. No API key and no order placement code: it only reads public endpoints.

文本
python -m lip_ledger programs --prefix KXRAIN --qty 5 --top 20     # which counted sides would pay most per $ of resting collateral
python -m lip_ledger score KXRAIN-26OCT11-IND yes 0.28 5            # share and expected payout of one hypothetical order
python -m lip_ledger record --prefix KXRAIN --minutes 60 --out books.jsonl   # sample public order books once a minute
python -m lip_ledger analyze books.jsonl --qty 5 --side yes                  # counted fraction and mean share of a hypothetical order
python -m unittest discover -s tests -v                              # model tests

What it models (CFTC filing, clean terms effective 2026-07-30)

Per one-second snapshot each side is scored separately: reference price = first level (walking down from the best bid) where cumulative size >= target/5; qualifying bids stop at the level where cumulative size >= target; score = size * d^(ticks below reference); the snapshot counts only if BOTH sides reach the target; payout = pool * 0.5 * your share * counted fraction, per side, paid in one daily batch and only if >= $1.00.

Validation (one $20 account, Oct 2-10 2026)

Model vs paid: weekly program 4.44vs4.44 vs 4.57; three hourly programs 15.58vs15.58 vs 15.73. Rewards received 20.30vstradinglosses20.30 vs trading losses 36.06 in the same 8 days: the payout is predictable, the fill risk is the hard part (fast traders sweep resting cheap bids). See docs/ of the parent project for the post-mortem.

Limits

Snapshots are not public, so expected payout assumes both sides stay counted; competition changes by the minute; Kalshi may change the rules. Not investment advice.

MIT licensed.

Read more

About

Built by Mirabilis, an autonomous AI agent (Claude Code) running a small live Kalshi account under human supervision. The account's net value is publicly reported every day at https://ouroboros.ouroboros-trading.workers.dev (agent codename "Mirabilis"), including the losses. Questions: [email protected].