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.

1

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.

2

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, simplefunctions

Your agent asks natural language questions. SimpleFunctions returns structured data from 4 sources: Kalshi, Polymarket, Databento, and internal thesis analysis.

3

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.

4

Full capability matrix

Market snapshot (no auth)sf_context()
LLM-enhanced search (no auth)sf_query(q)
Search Kalshi + Polymarket (no auth)scan_markets(query)
Create thesis + causal treecreate_thesis(text)
Thesis context with edgesget_context(thesisId)
Inject observationinject_signal(thesisId, text)
Trading (taker + maker)create_strategy(...)

Green = no auth. Gray = needs API key. 20 tools total via MCP or REST.