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.

Use these endpoints when an agent needs compact prediction-market context.

Endpoints

EndpointAuthReturns
GET /api/agent/worldnoneMarkdown snapshot by default.
GET /api/agent/world?format=jsonnoneJSON world snapshot.
GET /api/agent/world/{path}?format=jsonnoneDrill snapshot for a topic path.
GET /api/agent/world/delta?since=1h&format=jsonnoneChanges between stored snapshots.
GET /api/agent/world/feednoneAtom feed of world snapshots.
GET /api/agent/inspect/{ticker}noneOne-market inspection dossier.

Snapshot

GET /api/agent/world?format=json
curl "https://simplefunctions.dev/api/agent/world?format=json"
Parameters:
ParameterValuesUse
formatjson, markdownResponse format. Default is markdown.
limit1 to 30Number of salient items. Default 10.
depth0 to 3Drill expansion depth. Default 1.
since12h, 3d, ISO timestampOverride baseline where supported.
focustopic stringLegacy alias for the first path segment.

Drill

GET /api/agent/world/iran/hormuz?format=json
curl "https://simplefunctions.dev/api/agent/world/iran/hormuz?format=json&limit=8"
Use path segments to narrow the snapshot before sending it into an agent context window.

Operations

OperationExample
snapshot/api/agent/world?op=snapshot&format=json
catalyst/api/agent/world/iran?op=catalyst&window=7d&format=json
dispersion/api/agent/world/iran?op=dispersion&format=json
history/api/agent/world/iran?op=history&dt=24h&format=json
trail/api/agent/world?op=trail&from=KXHORMUZ&format=json
explain/api/agent/world?op=explain&item=s-7&format=json
Operation parameters:
ParameterRequired forUse
windowcatalystCatalyst window, for example 7d.
dthistoryHistory window, for example 24h.
fromtrailStarting ticker for linkage walk.
itemexplainSalient item id to explain.

Delta

GET /api/agent/world/delta?since=1h&format=json
curl "https://simplefunctions.dev/api/agent/world/delta?since=1h&format=json"
since accepts:
ValueExample
Minutes15m
Hours1h
Days3d
ISO timestamp2026-04-30T08:00:00Z

Inspect

GET /api/agent/inspect/{ticker}
curl "https://simplefunctions.dev/api/agent/inspect/KXRATECUT-26DEC31"
Parameters:
ParameterValuesUse
formatjson, markdownResponse format. Default json.
contagionfalseOmit connected-market scan.
difffalseOmit cross/related diff work.
trendfalseOmit trend work.
nextActionsoffOmit follow-up URLs and intent bodies.
Response fields:
FieldUse
ticker, venue, title, price, statusMarket identity and current state.
suggestionAction, confidence, reasoning, positives, warnings, and size hint.
regimeRegime score and signals.
indicatorsIY, CRI, EE, LAS, overround, and related computed fields.
edges[]Thesis-derived edges.
contagion[]Connected markets.
trend7d[]Recent price trend.
legislationLinked government context when available.
nextActionsExecution, watch, deeper inspection, and query follow-ups.
latencyMsServer latency for the inspection.
Markdown example:
curl "https://simplefunctions.dev/api/agent/inspect/KXRATECUT-26DEC31?format=markdown"

Feed

GET /api/agent/world/feed
curl "https://simplefunctions.dev/api/agent/world/feed"
Returns Atom XML with recent world-state snapshots. The feed includes up to 20 recent entries and is intended for RSS readers, automation tools, crawlers, and agent frameworks that support feed input.

CLI equivalents

sf world --json
sf world iran/hormuz --json
sf world --op catalyst --dt 48h --json
sf world --delta --json --since 1h
sf inspect KXRATECUT-26DEC31 --json