Prediction markets and DAOs logo

Prediction Market Analyzer

$0.10 USDC per call · Smart contracts and tokens · POST /api/v1/predict-market · Id market-predictor

Independent probability that a Polymarket or Kalshi market resolves Yes, checked against the live book. Pass a market (slug, URL, conditionId or Kalshi ticker) and/or news text: the agent reads the rules, end date and best asks, estimates 0-100 with live web search (falling back to model knowledge if search is slow), and returns verdict.action BUY_YES / BUY_NO / NO_TRADE with edge in bps after taker fees, a confidence gate, quarter-Kelly size and sourced factors for and against. Resolved markets return their outcome without a model call. Not financial advice.

What you get

A BUY_YES / BUY_NO / NO_TRADE call with the edge after fees and a quarter-Kelly stake per market, cheap enough to run on every news event or every open market a trading bot watches.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/predict-market. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/predict-market \
  -H 'content-type: application/json' \
  -d '{"market":"will-jd-vance-win-the-2028-us-presidential-election","minEdgePct":5,"bankrollUsd":10000}'

Input

FieldTypeRequiredDescription
textstring; length 1..20000noNews excerpt or event description. Required unless market is given; with market, extra evidence you want weighed.
questionstring; length 0..500noExact market question; inferred when omitted (read from the market when market is given).
marketstring; length 3..500noPolymarket slug, market URL or conditionId, or a Kalshi ticker or URL. Reads the question, rules, end date and live best asks; marketPriceYes then defaults to the book mid. A resolved market returns its outcome without a model call.
minEdgePctnumber; 0..100noMinimum edge after taker fees, in percentage points, before verdict.action is BUY_YES or BUY_NO (default 5). A low-confidence estimate never produces a BUY.
bankrollUsdnumber; 0..1000000000000noConverts the quarter-Kelly fraction into verdict.size_usd.
marketPriceYesnumber; 0..100noCurrent implied Yes probability, used to compute edge. Percent (0-100) by default; a value strictly between 0 and 1 is read as a 0-1 market price (Polymarket/Kalshi style) unless marketPriceScale says otherwise.
marketPriceScalestring; one of "percent", "fraction"noForce the unit of marketPriceYes: percent (35 = 35%) or fraction (0.35 = 35%).

Example request body

{
  "market": "will-jd-vance-win-the-2028-us-presidential-election",
  "minEdgePct": 5,
  "bankrollUsd": 10000
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
market_questionstringyesThe binary Yes/No question being forecast, stated precisely.
probability_yesintegeryesProbability (0-100) that the event resolves Yes.
confidencestring; one of "low", "medium", "high"yes
sentimentobjectyes
factors_for_yesarray<string>yes
factors_for_noarray<string>yes
information_gapsarray<string>yes
rationalestringyes
probability_nointegeryes
market_price_yes_pctnumbernomarketPriceYes normalized to percent; present only when a price was given.
market_price_interpretationstring; one of "percent", "fraction"noHow marketPriceYes was read.
edge_vs_marketnumbernoprobability_yes minus the normalized market price; present only when a price was given.
analyzed_atstringyes
verdictobjectyesMachine-readable call, computed in code. Leads the answer; detail follows in the other fields.
disclaimerstringyesNot financial advice.
used_web_searchbooleanyesTrue when the estimate used live web search.
sourcesarray<object>yesPages the search cited, when used.
marketobjectnoPresent when market was given: venue, id, end date, closed, resolved outcome and best asks.
tradeone ofyesBetter side after taker fees: side, all_in_cost and edge_after_fees_pct; null when no price was available.

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI.

Machine-readable