SDK·GitHub·MIT

SimpleFunctions Python SDK

Calibrated world model for AI agents — real-time probabilities from 9,706 markets

Install

pip install simplefunctions

Thin, typed Python client over the SimpleFunctions REST API. Designed for research notebooks and ML pipelines that need prediction-market signal as a feature.

One function gets you the current world state (top events, probabilities, trend). Another resolves a specific ticker. A third streams the SF Index. Everything returns plain dicts or pandas DataFrames.

Quickstart

from simplefunctions import SF
sf = SF(api_key="...")

world = sf.world_state()       # top ~100 events w/ consensus probabilities
idx = sf.index()               # current SF Index (disagreement, geo-risk, ...)
mkt = sf.market("KXRATE-25OCT30")

Install via pip install simplefunctions. API key from simplefunctions.dev/dashboard.

Quickstart

from simplefunctions import SF
sf = SF(api_key="...")
world = sf.world_state()

Tags

pythonsdkapipandasresearch

Related