Skip to main content
Endpoints under /api/public/* are public read surfaces by default. Most do not require an API key for basic use. Auth may unlock higher rate limits, higher model tiers, or user-specific overlays on supported routes.

Markets

Market candles

Query parameters: This is the hosted API mapping for the strict market.candles SDK/Agent contract. The Vercel API route proxies to the terminal/Fly candle service and normalizes the response for SDK consumers.

Cross-venue

Regime + index

GET /api/public/regime/history is deprecated and returns 410 Gone. Use GET /api/public/regime/scan for current regime labels and GET /api/public/market-microstructure-history for spread/depth history. See Index methodology and Regime.

Probability index (/odds)

The SimpleFunctions Probability Index aggregates one liquidity-weighted YES probability per question across Kalshi + Polymarket, refreshed every 15 minutes. Same data the /odds page renders. Query parameters (both endpoints):

Calendar + milestones

Liquidity + contagion

Government data

Economic data

Content

Skills

Theses + opinions

Technicals

Ideas

Context

Caching

Most public endpoints set Cache-Control: public, s-maxage=N and CDN-cache aggressively. Per-route TTLs vary:
  • markets, scan, screen — 60s
  • query, query-gov, query-econ — 5–10min in-memory + 5min CDN swr
  • index, regime — 30s
  • legislation, congress members — 1h ISR
See Rate limits for per-key throttling.

See also

Agent API

LLM-shaped variants under /api/agent/*.

World model guide

Recommended agent loop using these endpoints.