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
Endpoint Auth Returns GET /api/agent/worldnone Markdown snapshot by default. GET /api/agent/world?format=jsonnone JSON world snapshot. GET /api/agent/world/{path}?format=jsonnone Drill snapshot for a topic path. GET /api/agent/world/delta?since=1h&format=jsonnone Changes between stored snapshots. GET /api/agent/world/feednone Atom feed of world snapshots. GET /api/agent/inspect/{ticker}none One-market inspection dossier.
Snapshot
GET /api/agent/world?format=json
curl "https://simplefunctions.dev/api/agent/world?format=json"
Parameters:
Parameter Values Use 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 string Legacy alias for the first path segment.
{
"region" : {
"path" : [],
"label" : "World"
},
"regime" : {
"label" : "neutral" ,
"signals" : {}
},
"salient" : [],
"index" : {},
"traditional" : [],
"movers" : [],
"opportunities" : [],
"marketCount" : 0 ,
"servedAt" : "2026-04-30T00:00:00.000Z"
}
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
Operation Example snapshot/api/agent/world?op=snapshot&format=jsoncatalyst/api/agent/world/iran?op=catalyst&window=7d&format=jsondispersion/api/agent/world/iran?op=dispersion&format=jsonhistory/api/agent/world/iran?op=history&dt=24h&format=jsontrail/api/agent/world?op=trail&from=KXHORMUZ&format=jsonexplain/api/agent/world?op=explain&item=s-7&format=json
Operation parameters:
Parameter Required for Use 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:
Value Example Minutes 15mHours 1hDays 3dISO timestamp 2026-04-30T08:00:00Z
Show Delta response shape
{
"from" : "2026-04-30T08:00:00.000Z" ,
"to" : "2026-04-30T08:15:00.000Z" ,
"changes" : [],
"markdown" : "# World Delta — no changes since 1h" ,
"latencyMs" : 18
}
If there is no stored snapshot before the requested timestamp, the endpoint returns 404 with a suggestion to call /api/agent/world.
Inspect
GET /api/agent/inspect/{ticker}
curl "https://simplefunctions.dev/api/agent/inspect/KXRATECUT-26DEC31"
Parameters:
Parameter Values Use 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:
Field Use 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