OpenClaw Integration
Prediction market skills for OpenClaw
Your OpenClaw agent gets context, edge detection, and execution across Kalshi and Polymarket. One integration. Both venues. Monitored 24/7. Traditional market data via Databento.
Connect in one line
claw.add_tool("sf_context",
endpoint="https://simplefunctions.dev/api/public/context")
claw.add_tool("sf_query",
endpoint="https://simplefunctions.dev/api/public/query")
claw.add_tool("sf_thesis",
endpoint="https://simplefunctions.dev/api/thesis/:id/context",
auth="Bearer sf_live_xxx")Three tools. Context and query need no auth. Thesis-specific tools need an API key.
What your agent gets
> "What's happening in prediction markets right now?"
⚡ sf_context()
Thesis Edges (from 10 live thesis):
P 71¢ edge +61¢ Iran conflict ends by June
K 4¢ edge +46¢ Gas above $4.40
P 35¢ edge +46¢ US recession by end of 2026
Traditional Markets (via Databento):
SPY $670.19 -1.6%
VIXY $33.57 +8.0%
GLD $292.40 +2.1%
Recent Signals:
▲ 63% Hormuz closure confirmed
▼ 18% Kill condition: GDP surged +4.3%> "What are prediction markets pricing for Fed rate cuts?"
⚡ sf_query("fed rate cut 2026")
Markets price 0 Fed rate cuts as most likely (31¢).
SPY at $670, VIXY at 33 suggests elevated vol.
10 matching thesis with edges on Fed contracts.
Markets:
P 31¢ How many Fed rate cuts in 2026?: 0
P 26¢ How many Fed rate cuts in 2026?: 1
P 21¢ How many Fed rate cuts in 2026?: 2
Sources: kalshi, polymarket, databento, simplefunctionsYour agent asks natural language questions. SimpleFunctions returns structured data from 4 sources: Kalshi, Polymarket, Databento, and internal thesis analysis.
Why not call Kalshi + Polymarket directly?
Two APIs, two auth schemes, two price formats. Kalshi uses cents with RSA auth. Polymarket uses decimals with EIP-712. SimpleFunctions normalizes both.
Raw data vs intelligence. Exchange APIs return prices. SimpleFunctions returns prices + what they mean — thesis-implied edges, adversarial validation, track record, and traditional market cross-reference.
24/7 monitoring included. The heartbeat engine scans news, refreshes prices, runs adversarial search, and evaluates every 15 minutes. Your agent reads the output — it doesn't need to orchestrate the pipeline.
ClawHub safety. 2,419 malicious skills were purged from ClawHub in early 2026. SimpleFunctions is a hosted API — no code runs on your machine. No wallet-stealing risk.
Full capability matrix
Green = no auth. Gray = needs API key. 20 tools total via MCP or REST.