Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt

Use this file to discover all available pages before exploring further.

Endpoints under /api/agent/* return data shaped for LLM context windows: compact snapshots, deltas, structured ticker dossiers.

World

EndpointPurpose
GET /api/agent/worldFull compact world snapshot
GET /api/agent/world/deltaChanges since ?since=<duration|date>
GET /api/agent/world/feedActivity feed slice
GET /api/agent/world/{...path}Sub-path routing
curl -H "Authorization: Bearer $SF_API_KEY" \
  "https://simplefunctions.dev/api/agent/world?compact=true"
Compact snapshot includes: top markets by volume, regime distribution, calendar of next 7d resolutions, what changed in the last hour, SF Index value.

Inspect

GET /api/agent/inspect/{ticker}
Returns a structured market dossier — metadata, prices, indicators (IY/CRI/EE/LAS/τ), regime, related markets via event/theme grouping, contagion candidates, follow-up actions.
curl -H "Authorization: Bearer $SF_API_KEY" \
  https://simplefunctions.dev/api/agent/inspect/KXRATECUT-26DEC31

Feed

GET /api/agent/feed/{topic}
Returns a topic-scoped activity slice (markets, theses, ideas, opinions tagged with the topic).

Why these are agent-shaped

The endpoints under /api/public/* return raw data; agent endpoints additionally:
  • Compact the payload (drop fields agents don’t read).
  • Structure related links (nextActions[]) so the agent can chain calls.
  • Annotate with regime labels, indicator summaries, theme tags.
For pure data integrations prefer /api/public/*. For LLM-driven flows prefer /api/agent/* to save tokens.

See also

World model guide

Agent loop using snapshot + query + inspect + delta.

World state API

Full parameter list for snapshot/delta routes.