SimpleFunctions

Context.

The whole market in one call. No auth. CC-BY-4.0.

3,000+ prediction markets across Kalshi and Polymarket, condensed by an LLM into eighteen topic groups, cross- category highlights, traditional-market snapshot, live thesis edges, and evaluation signals. A few hundred tokens — drop the JSON straight into your agent prompt.

Abraham Cresques in his Barcelona workshop completing the 1375 Catalan Atlas — a vellum chart with compass roses, the Sahara caravan toward Mansa Musa of Mali, port flags, and a brass astrolabe; an apprentice grinding lapis lazuli pigment

Catalan Atlas · Cresques 1375 — geography, politics, astronomy, and trade routes pressed into one parchment. The original world-context bundle.

What ships in one call

Seven sections. ~few-hundred tokens total. No auth.

The bundle is shaped for an agent's next decision, not for human browsing. Categories rank by 24h volume, highlights surface what cannot be missed, edges and signals come from the active thesis loop.

categories

18 topic groups (macro, crypto, policy, sports), each with topMovers + mostLiquid lists.

highlights

LLM-curated cross-category callouts with related tickers and suggested commands.

traditional

Real-time SPY, VIX, gold, oil, BTC snapshot — context for prediction-market repricing.

edges

Live thesis-vs-market edges from active public theses, depth-scored, top 8.

signals

Recent thesis evaluations: confidence delta, summary, citation per signal.

meta

Total markets scanned · K/PM split · scan timestamp · LLM token budget.

licensing

CC-BY-4.0; attribute simplefunctions.dev. Drop the JSON straight into agent prompts.

Live thesis edges

K21¢edge +60¢Will average **gas prices** be above or below $2.60 by Dec 3fertilizer-shock-farm-crisis
K78¢edge +60¢Will the 7-day moving average of transit calls through the Sfertilizer-shock-farm-crisis
K29¢edge +60¢Will average **gas prices** be above or below $5.20 by Dec 3fertilizer-shock-farm-crisis
K15¢edge +60¢Will average **gas prices** be above $4.25?fertilizer-shock-farm-crisis
P13¢edge +60¢US recession by end of 2026?powell-warsh-fed-succession
P26¢edge +59¢What will Kevin Warsh say during June Press Conference?: Deppowell-warsh-fed-succession
P7¢edge +58¢May Inflation US - Annual: ≥4.4%fertilizer-shock-farm-crisis
K73¢edge +58¢Will the 7-day moving average of transit calls through the Sfertilizer-shock-farm-crisis

Recent thesis evaluations

24%The thesis remains under pressure due to market-observed inflation signals. While Hormuz transit issues appear largely p
fertilizer-shock-farm-crisis · 33m ago
45%The formal nomination of Kevin Warsh confirms a core thesis pillar, though the market had largely priced this in. Confid
powell-warsh-fed-succession · 34m ago
29%Confidence decreased slightly as sibling-model signals regarding ceasefire potential exert pressure on the diplomatic co
doge-federal-capacity-crisis · 34m ago
34%No material events occurred that alter the causal landscape; recent polling reflects stable trends, and cross-venue pric
cali-governor-election · 34m ago
23%Recent market data shows conflicting signals on Hormuz transit volumes and gas prices; while some transit-related contra
fertilizer-shock-farm-crisis · 1h ago

Why a curated context beats raw markets

ApproachWhat it gives youWhere it breaks

Bloomberg dashboard

Best curated market screen money buys

No prediction-market integration; no agent-readable shape; no thesis context

Raw markets dump

Total coverage

Too large for agent context; no curation; no actionable framing

Custom scraper

Full control over the schema

Months of work; no LLM curation; no calibration; no settlement awareness

SimpleFunctions context

One call · LLM-curated · agent-shaped

Designed for the next tick decision, not for browsing

Six patterns that consume context

Same JSON; different downstream. The shape that repeats: an agent or a human reading the bundle and deciding what to do next.

Agent prompts

Embed sf.context JSON in the system prompt; agent reasons about today's tape.

Morning briefing

CLI sf context piped to your IC pack — categories + highlights + signals.

Slack / TG bots

Highlights → Slack message every heartbeat; only the changed callouts surface.

Research pipelines

Backtest replay context as features alongside per-tick orderbook history.

Public dashboards

CC-BY-4.0 — drop into your own dashboard; attribute simplefunctions.dev.

LLM training corpora

Daily HF dump of context bundles — clean signal for training prediction-market agents.

Context endpoints

Same JSON across CLI, REST/Data API, MCP adapter, and historical snapshots. Drop into any agent or pipeline.

API reference

FAQ

What does the global context endpoint return?

A curated bundle: categories (with top movers and most-liquid contracts per category), cross-category highlights (with actionable tickers and suggested commands), traditional market snapshot (SPY, VIX, gold, oil, BTC), live thesis edges, recent evaluation signals. ~3,000 markets scanned, condensed to a few hundred tokens designed to drop into an agent prompt.

How is this different from /api/public/markets?

markets is the raw catalogue. context is the curated, decision-shaped subset: only what an agent or PM should react to right now. Highlights have plain-English descriptions and ticker links; categories rank by 24h volume; edges and signals come from active public theses.

How often is it refreshed?

Categories and highlights are LLM-curated twice daily. Edges and signals refresh on every heartbeat tick (15 min). Traditional market snapshot is real-time. The endpoint cache is ~30s; pull it as fast as you like.

Do I need an API key?

No. /api/public/context is CC-BY-4.0 licensed and available on the free tier with rate limits. Authenticated thesis-specific context (per-thesis tree state) is metered and key-gated.

How do I drop this into an agent?

Three lines: agent reads sf.context (or GET /api/public/context), embeds the JSON in its prompt, takes action via sf.intent.create. The bundle fits in ~few hundred tokens; agents can pull on every loop without context-window pressure.

What are highlights actually?

LLM-curated cross-category callouts: an event the system thinks the agent should not miss (a Fed pivot, a CPI surprise, a Polymarket sports liquidity hot spot). Each highlight ships with related tickers and a suggested follow-up command.

Categories — by what taxonomy?

Eighteen topic groups: macro (oil, Fed, CPI, recession, treasury yields, geopolitics, tariffs, elections, govt shutdowns, central banks), crypto (BTC/ETH/SOL ladders + ETF flow + halving), policy (legislation, executive actions, regulatory), and sports (EPL, NBA, UCL, CS2, IPL, NFL). Each category gets its own movers + liquid list.

How is global context different from thesis context?

Global context shows the market as a whole — categories, movers, highlights. Thesis context layers your model on top: causal tree with thesis-implied prices, edges where your view disagrees with the market, kill-condition status, track record. Global is no-auth; thesis is BYOK.

Cost?

Public global context endpoint is free, CC-BY-4.0. Per-thesis context is metered. Webhook delivery free. WebSocket /v1/ws free for read.

Backtest / historical?

GET /api/public/context?at=2026-04-01T12:00 returns the historical snapshot at that timestamp. Daily Hugging Face dump under SimpleFunctions/context (CC-BY-4.0) ships the full archive.

Related surfaces