SimpleFunctions

Compress, Compute, Execute.

Prediction markets are where real money prices elections, the economy, and world events — minute by minute. SimpleFunctions makes sense of all of it and hands you clear signals, live odds, and the tools to act — for funds, trading desks, and newsrooms.

npm install -g @spfunctions/cli

Prediction markets currently indicate a low risk of a US recession, with an 8% chance by the end of 2026 and a 26% chance by the end of 2027. Economic data reflects a stable environment with 4.1% unemployment and a positive 10Y-2Y Treasury spread of 0.52%, suggesting investors are not pricing in an immediate downturn.

10.9s·5 factors·Kalshi 5 + Polymarket 2
·8% chance of recession in 2026
·26% chance of recession in 2027
·4.1% unemployment rate
·Positive 0.52% yield spread
·Real GDP grew 2.1% YoY
Disagreement7d
Geo Risk7d
Breadth7d
Activity7d
Disagreement 42Geo Risk 0Breadth +0.38Activity 57
0¢Will Sunflower rank #2 on YouTube Charts’ Daily Top Music Videos chart dated Aug 19, 2026?: Sunflower
0¢Will the USD Settlement Price for the Current Auction of the August 19, 2026 CARB Joint Auction #48 settle at or above the official August 19, 2026 ICE settlement price for the August 2026 California Carbon Allowance Vintage 2026 Future?: CARB ≥ ICE
[vol]Will the rate of CPI inflation be above 3.4% for the year ending in August 2026?: Above 3.4%23¢
[lag]Paul Renner finish 4th in the Florida Republ…: 5 markets deeply split (σ=46¢, range 94¢)0¢
[lag]What states will redistrict Congressional el…: 17 markets deeply split (σ=45¢, range 94¢)0¢
Democratic win the House race for MA-… lagging a Democrat win the House race for CT-… — 110¢ gap [US Elections]
WTI crude oil settlement price be abo… lagging New Mexico’s field production of crud… — 70¢ gap [Oil & energy]

One API call that compresses the world's markets into 800 tokens.

View /world →

Thesis-Based Realtime Market Monitoring.

View /ai-agents →Read the thesis docs
> find contracts yielding over 300% annualized, expiring in more than 30 days, with daily volume above $50,000. set triggers to buy. only execute if oil is trading above $95.
Screened 4,200 active markets. 3 match your criteria.
KXRECSSNBER-2642¢buy below 40¢
KXFEDCHAIRCONFIRM95¢filled 500 @ 94¢
KXOIL-100DEC2561¢buy above 65¢
All three intents are armed. Oil gate active — I won't execute until WTI clears $95. Checking every 60 seconds. I'll send you a Telegram message when something fills or the gate condition changes.
> |
$ sf portfolio enable
Kalshi API key encrypted and stored. Schedule set. Dry-run mode active.
$ sf portfolio view add
"Recession risk is underpriced"
--conviction 5 --horizon 2026-12-31
$ sf portfolio trigger
SCANNED4,200 markets
POSITIONS12 active
ACTION+2 entries, 1 exit
HANDOFFwritten for next tick
7 risk gates passed. Handoff note saved. Next tick in 12h.

Autonomous Portfolio Management with Mechanical Risk Gates.

View /portfolio-autopilot →Read the portfolio docs
42/100
8/11 23:45Z8/18 23:45Zlive index →

Prediction Market Index.

View live index

Data Pipeline for makers and takers.

Open screener →

Real-time data feed across Kalshi and Polymarket. Every orderbook change, every price move, every resolution.

Screen endpoint filters thousands of active contracts by five quantitative indicators — implied yield, cliff risk, expected edge, liquidity score, and time decay.

Regime endpoint classifies each market as maker-favorable or taker-favorable based on spread, depth, and flow patterns.

Politics1,5000.007A+
Sports110,0000.030A
Climate8,8000.035A
Esports6,9000.034A
Crypto325,0000.225C
Economics33,0000.372D
lower Brier = better calibrated · 0 = perfect · 0.25 = coin flip
full calibration analysis →

Platform Calibration.

How well-calibrated are prediction markets? Brier score by category across 488,000 resolved contracts.

01 / 04
Legislative proposals currently include 119-s-4303, which targets fraudulent importation of electronic nicotine systems, and 119-s-952, which aims to standardize whisky tariff subheadings, while 119-hr-407 serves as the Prevent Tariff Abuse Act. Prediction markets indicate a 42% probability that new or increased tariff legislation will be enacted before November 1, 2026, and a 46% probability before January 1, 2027.
Tariff Act of 1930Harmonized Tariff SchedulePrevent Tariff Abuse ActPrediction market dataLegislative referrals
4 bills5 markets4.9s
query-gov API →
Pnyx — query-gov for agents

Congress.gov for agents.

CLI + REST/API + MCP adapter for 425K bills, 538 members, and the prediction markets pricing each one.

View /query-gov →

SimpleFunctions Daily.

API docs →
Disagreement42/100
Geo Risk0/100
Breadth+0.38
Activity57/100
All markets

Hub coverage.

81 URLs

Indexable market hubs grouped by category, venue, and series. Each row has a page and a JSON twin.

C1 · category

15hubs

Live regime + 5-indicator panorama per vertical.

C1 · venue

1hubs

Side-by-side Kalshi vs Polymarket — categories, volume, calibration.

C2 · series

65hubs

Term curve / threshold ladder, every contract enriched with SF signal stack.

GET /api/public/markets/{type}/{slug}

15-minute refresh. Available via REST and CLI — GET /api/public/context / sf context.

Custom data, execution, liquidity.

Tuned indicators. Private latency tiers. Dedicated cross-venue routing. Direct integration into the desk stack — or your agent runtime.

For quant research desks, market makers, execution teams, and production agent deployments at scale.

Contact sales →