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.

Every endpoint under /api/public/* is read-only and requires an SF API key (rate-limited).

Markets

EndpointPurpose
GET /api/public/marketsMarket universe (paginated)
GET /api/public/newmarketsRecently listed markets
GET /api/public/scanMulti-mode scan: keyword, series, market
GET /api/public/screenIndicator-based screener
GET /api/public/screen-by-tickersScreen explicit ticker list
GET /api/public/searchServer-side search across markets + content
GET /api/public/market/{ticker}Full market detail (set ?depth=true for orderbook levels)
GET /api/public/market/{ticker}/historyPrice history
GET /api/public/market-microstructure-historySpread/depth/flow over time
GET /api/public/live-tickersLive-priced ticker list

Cross-venue

EndpointPurpose
GET /api/public/cross-venue/pairsKalshi ↔ Polymarket pairs
GET /api/public/cross-venue/statsPair counts + confidence distribution

Regime + index

EndpointPurpose
GET /api/public/regime/scanRegime label per market
GET /api/public/regime/historyRegime label history
GET /api/public/indexCurrent SF Index
GET /api/public/index/historySF Index time series
See Index methodology and Regime.

Calendar + milestones

EndpointPurpose
GET /api/public/calendarUpcoming resolutions
GET /api/public/yield-curvesYield curve list
GET /api/public/yield-curves/{event}One yield curve

Liquidity + contagion

EndpointPurpose
GET /api/public/liquidity-by-themeLiquidity grouped by theme
GET /api/public/contagionLagging related markets

Government data

EndpointPurpose
GET /api/public/query-govSearch bills, members, treaties (congress mirror backed)
GET /api/public/legislationLegislation list
GET /api/public/legislation/{billId}One bill
GET /api/public/congress/membersCongress member list
GET /api/public/congress/member/{id}One member

Economic data

EndpointPurpose
GET /api/public/query-econSearch FRED series (fred mirror backed)
GET /api/public/fredFRED series detail
GET /api/public/databentoDatabento traditional markets
GET /api/public/trad-marketsTraditional market anchors

Content

EndpointPurpose
GET /api/public/queryHeadline cross-venue search
GET /api/public/topic/{slug}Topic page data
GET /api/public/answer/{slug}Wayback-stable answer page
GET /api/public/glossaryGlossary
GET /api/public/glossary/{slug}Glossary entry
GET /api/public/guideAgent guide
GET /api/public/highlightsEditorial highlights
GET /api/public/briefingDaily briefing
GET /api/public/diffDaily diff
GET /api/public/discussDiscussion topics

Skills

EndpointPurpose
GET /api/public/skillsPublic skill catalog
GET /api/public/skill/{slug}One skill

Theses + opinions

EndpointPurpose
GET /api/public/thesesPublic theses
GET /api/public/thesis/{slug}One published thesis
GET /api/public/opinionsEditorial opinions
GET /api/public/opinions/{slug}One opinion

Technicals

EndpointPurpose
GET /api/public/technicalsTechnical guides
GET /api/public/technicals/{slug}One guide

Ideas

EndpointPurpose
GET /api/public/ideasTrade ideas
GET /api/public/ideas/{id}One idea

Context

EndpointPurpose
GET /api/public/contextGlobal market context (no thesis)

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.