The Prediction Market API
Programmatic access to prediction markets on Kalshi, Polymarket, Polymarket US and Gemini. Search markets and read their prices and order books, track top whale trades, follow market moves, look up traders and their records, backtest strategies and run paper bots.
What people build with it
Your own bot or dashboard
Read whale trades and winning traders' positions over REST, and keep a live feed open on the stream. Filter by venue, category, kind of market, price, size or trader.
An assistant that does the research
Connect Claude, ChatGPT or Cursor to the MCP server and ask in plain English. It reads the data, backtests an idea and starts it as a paper bot.
Ideas tested before they cost you
Score copying a signal or a trader on markets that already settled, check it on a later stretch it never saw, then run it on paper at live prices.
One request for what winning traders hold
Lists what winning traders hold right now on markets that are still trading, biggest first. Every route takes a key in the Authorization header.
curl "https://api.rivo.markets/v2/positions?venue=kalshi&category=sports&limit=1" \
-H "Authorization: Bearer rivo_live_..."import requests
url = "https://api.rivo.markets/v2/positions"
headers = {
"Authorization": "Bearer rivo_live_...",
}
params = [
("venue", "kalshi"),
("category", "sports"),
("limit", "1"),
]
res = requests.get(url, headers=headers, params=params)
res.raise_for_status()
print(res.json())const params = new URLSearchParams([
["venue", "kalshi"],
["category", "sports"],
["limit", "1"],
]);
const res = await fetch(`https://api.rivo.markets/v2/positions?${params}`, {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.RIVO_API_KEY}`,
},
});
if (!res.ok) throw new Error(`Rivo API ${res.status}`);
const { data } = await res.json();{
"data": [
{
"market": {
"ref": "a2Fsc2hpOm1hcmtldDpLWE5GTE5GQ05PUlRILTI3LUNISQ",
"contract": "a2Fsc2hpOm1hcmtldDpLWE5GTE5GQ05PUlRILTI3LUNISQ",
"venueId": "KXNFLNFCNORTH-27-CHI",
"title": "Will Chicago win the Pro Football NFC North Division?",
"venue": "kalshi",
"category": "sports",
"kind": "nfl"
},
"outcome": "Yes",
"outcomeLabel": null,
"entryPrice": 0.2005,
"price": 0.2,
"priceAt": "2026-10-15T02:28:27.319Z",
"usd": 42770.17,
"openedAt": "2026-10-04T08:40:39.804Z",
"lastBoughtAt": "2026-10-12T05:13:29.103Z",
"lead": {
"ref": "kalshi:avidsmores",
"name": "avidsmores",
"winRate": 0.6973,
"profit": 15681.48,
"settled": 935,
"usd": 42770.17,
"entryPrice": 0.2005
},
"others": [],
"split": { "sameSideUsd": 42770.17, "otherSideUsd": 0, "otherSideTraders": 0 },
"activity": null,
"record": null
}
],
"nextCursor": "eyJvIjoxfQ"
}Or ask your AI
Add the MCP server to Claude, ChatGPT or Cursor and type one sentence. Every number below is a real backtest on Rivo's data.
> Find me a whale signal that held up on data it never saw.
→ backtest({ signal: { category: ["politics"], minUsd: 10000, priceMin: 0.5 }, sweep: { field: "priceMax", values: [0.70, 0.80, 0.85, 0.95] } })
0.70: +28% (105 bets) 0.80: +19% (275) 0.85: +19% (357) 0.95: +13% (634)
→ backtest({ signal: { category: ["politics"], minUsd: 10000, priceMin: 0.5, priceMax: 0.85 }, holdout: true })
earlier +29% · later +7% · holds: true
→ create_bot({ name: "Politics favorites", trigger: { signal: { category: ["politics"], minUsd: 10000, priceMin: 0.5, priceMax: 0.85 } }, sizing: { usd: 100 } })
started · paper · $100 a trade
Whale buys of $10K or more on politics markets priced 50 to 85¢ returned +19% across 357 settled bets over 90 days, and still made +7% on the later stretch they were never tuned on. I picked 85¢ over 70¢ because it has three times the bets for nearly the same return. Started as a paper bot called "Politics favorites".
{
"mcpServers": {
"rivo": {
"url": "https://api.rivo.markets/mcp/v2",
"headers": { "Authorization": "Bearer rivo_live_..." }
}
}
}Setup for each client, the tools and the prompts are in the MCP docs.
Every route
Each route has an MCP tool that returns the same data. Each links to its full reference.
Trades and moves
get_tradesLists whale trades from the last 30 days, newest or biggest first, with each trader's record and what other whales did.
get_positionsLists what winning traders hold right now on markets that are still trading, biggest first.
get_movesLists what markets did over the last 24 hours: sharp price moves, changes of favorite and whales piling in.
Pushes trades and market moves to you over one server-sent events connection, with the same filters as the listings.
Markets
search_marketsSearches and browses markets on every venue. It returns open markets by default, or the markets that settled in the last 30 days.
get_marketReads one market with every outcome's price, bid and ask. On request it adds the order book, the whales, the price history and the newest whale trades.
Traders
search_tradersSearches and ranks traders who were active in the last 30 days, over all time or over today, this week or this month.
get_traderReads one trader's record overall, by category and by kind of market. On request it adds their positions, profit curve, habits and similar traders.
Paper
place_paper_orderBuys or sells one side of a market on paper. Rivo fills the order against the venue's live order book at the venue's real fee.
get_paper_accountReads the paper account's totals and positions, from both hand trades and bots. On request it adds the paper orders you placed by hand.
Bots
list_botsLists every bot on the account: trader, signal and market bots, on paper and live.
create_botStarts a paper bot that copies a trader, runs a signal, or runs a price rule on one market.
get_botReads one bot's settings, record and profit curve. On request it adds the bot's trades and how busy its trigger has been.
update_botChanges a paper bot's sizing, signal, rule, alerts or status.
delete_botStops and removes a paper bot. Its open paper positions stay until they settle.
Frequently asked questions
What do I need to get started?+
A Rivo subscription ($9 a week or $15 a month) and an API key, which you create in Settings under Developer. The key is shown once and stored only as a hash.
What are the limits?+
Limits are per account, shared by all its keys and by REST and MCP: 120 requests a minute, 5,000 trades older than an hour and 100 different traders a day, and three open streams. Trades reach back 30 days. Trades from the last hour and the stream do not count against the trades.
Is the MCP server local or remote?+
Remote. There is nothing to install: point your MCP client at the endpoint and pass your key as a bearer token.
Can I trade real money through the API?+
No. The API and the MCP server trade on paper: paper orders and paper bots run at live prices and no money moves. Real-money trading and live bots stay in the app, through your own venue accounts.
How is a backtest's return worked out?+
The way prediction market contracts settle. A winning contract pays $1 and a losing one pays nothing, so a $100 stake at 20 cents makes $400 profit on a win and loses $100 on a loss. Stakes default to a flat $100 a trade, which keeps two ideas comparable.