SimpleFunctions
CLIENT·GitHub·MIT

SimpleFunctions Python Client

Preview Python client for the SimpleFunctions HTTP/Data API

Install

pip install simplefunctions-ai

Preview Python client over the SimpleFunctions HTTP/Data API. Designed for 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 SimpleFunctions 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 SimpleFunctions Index (disagreement, geo-risk, ...)
mkt = sf.market("KXRATE-25OCT30")

Install via pip install simplefunctions-ai. The import package remains simplefunctions. API key from simplefunctions.dev/dashboard.

Quickstart

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

Tags

pythonclientapipandasresearch

Related