
Oracle3 prediction-market arbitrage checks
io.github.YichengYang-Ethan由 GitHub 帳號 YichengYang-Ethan 發布v1.2.2更新於 Oct 24, 2026
Kalshi and Polymarket data, venue fees, no-arbitrage checks and paper execution for AI agents.
概覽
將助理連接到 Kalshi 與 Polymarket 預測市場,用於研究、含手續費的套利檢查與模擬紙上交易。
- 可以做什麼
- 搜尋並讀取 Kalshi 與 Polymarket 的合約、中繼資料與結算規則
- 檢視報價、訂單簿、費用資訊與顯示深度
- 執行關係檢查(蘊含、互斥、互補、同一事件、事件加總),回傳候選組合、各腿費用與淨邊際
- 估算交易手續費並計算參數化的公平價值
- 在本地帳本中送出並檢視模擬紙上訂單
- 適用情境
- 適合讓助理研究預測市場合約、跨 Kalshi 與 Polymarket 比較相關結果,或在不投入真實資金的情況下驗證含手續費的套利想法。
- 執行需求
- 以本地 Python 套件形式執行(需 Python 3.10+),透過 stdio 啟動,可用 uvx 或虛擬環境中的執行檔;僅支援桌面用戶端。公開市場讀取不需交易所憑證。選用環境變數 ORACLE3_MCP_LEDGER 可指定本地紙上交易帳本路徑。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Oracle3 prediction-market arbitrage checks,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Oracle3
Build prediction-market agents that discover markets, analyze opportunities, and test strategies.
Connect AI agents to Kalshi and Polymarket through MCP. Give them reusable Skills for market research and strategy development, then build on a Python engine for paper and live execution.
13 MCP tools · 6 agent Skills · Kalshi & Polymarket data · Python 3.10+
[Tests] [GitHub stars] [PyPI] [License] [DOI]
Quickstart · MCP tools · Agent Skills · Project and contributions · Documentation
Why Oracle3
- A connected research workflow. Discover contracts, inspect their rules and order books, compare related outcomes, and track simulated positions.
- Calculations that include trading costs. Five relationship checks return candidate baskets, per-leg fees, and calculated net edge.
- Tools and workflows for agents. Use MCP for structured access and Skills for repeatable research, strategy authoring, and operations.
- An engine you can extend. Build strategies with Python interfaces, risk controls, and paper/live venue adapters.
- A foundation for experiments. Reproducible software checks, automated tests, and installed-package validation make the implementation inspectable.
Public Kalshi and Polymarket market reads need no exchange credentials. MCP provides market data, calculations, and a local paper ledger; real-order execution uses the separate CLI/Python engine.
Quickstart
Install the current development checkout:
Connect it to Claude Code from this directory:
For other MCP clients, configure the absolute path to .venv/bin/oracle3-mcp as the command with an empty argument list. On Windows, use .venv\Scripts\python.exe and .venv\Scripts\oracle3-mcp.exe.
Client configuration and first tool call · Published-package installation
Give your agent a first task
Find Kalshi and Polymarket contracts about the next Fed rate decision. Compare their outcome definitions, resolution rules, and order-book quotes. Summarize the markets with their IDs, prices, and the assumptions needed to compare them.
For a calculation that works offline after installation:
Use Oracle3 to check an implication: A implies B. A has a YES bid of $0.60 and B has a YES ask of $0.55. Use the default Kalshi taker fee schedule and 100 contracts per leg. Show the basket, gross edge, fees, and net edge.
The synthetic example returns $5.00 gross edge − $3.4125 fees = $1.5875 calculated net edge, conditional on the supplied implication and quotes. See exact inputs and output.
What agents can do
Relationship checks cover implication, exclusivity, complement, same event, and event sum. They expose assumptions with their results, giving agents and researchers a common calculation layer.
All 13 MCP tools · Workflow examples
Reusable agent Skills
The repository includes six workflows that help agents move from individual tool calls to complete tasks:
Claude Code project copies are included in .claude/skills/. Open the checkout as your project, or use your client's supported Skill installation mechanism. Skill setup.
For AI agents: start with llms.txt for task routing, the MCP reference for tool schemas, and AGENTS.md for contributing code.
Build with Python and the CLI
Use the same project for research scripts, agent strategies, and engine operations:
CLI guide · Integration guide · Execution reference
Built for experimentation
Oracle3 combines a concrete decision environment with structured tools, observable state, and a software validation harness. This supports work on agent interfaces, workflow guidance, and reproducible evaluation.
CI runs automated tests and checks the built package through real MCP sessions on SDK 1.x and 2.x. The harness documentation explains the reproducible checks. Model-level agent evaluation is a next research direction.
Project overview and Yicheng Yang's contributions · Fee-frontier study · Companion pricing research
Contribute
Help build better agent workflows, labeled evaluation tasks, strategy examples, and client integrations. New venue, data-provider, and wallet integrations start in oracle3-extras.
Contributing guide · Open problems · Discussions
Origin and attribution
Oracle3 began as ulab-uiuc/oracle3, developed by Yicheng Yang and Haofei Yu at U Lab (University of Illinois Urbana-Champaign). It also bundles the lab's Coinjure package. Yicheng Yang continues to develop and maintain the extensions in this repository. Read the project story and contributions.
We acknowledge the foundational work of the Coinjure team at the University of Illinois Urbana-Champaign—Haofei Yu, Yicheng Yang, Yuxiang Liu, and Prof. Jiaxuan You—on which Oracle3 builds.
For software citation, use CITATION.cff and Zenodo. For the pricing model, see the working paper.
License
Apache 2.0; see LICENSE. Original U Lab and Coinjure portions retain their MIT license in NOTICE.
This software is for research and education. Trading involves financial risk.
來源:README.md,提交 267fb7c
工具
0版本歷史
2- v1.2.2最新Oct 1, 2026
- v1.2.1Sep 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分