The December and January Fed meetings trade on both Polymarket and Kalshi. Same question, same date, two prices. Today the January "hike 25 bps" outcome was 53.5% on Polymarket and 56.5% on Kalshi. A 3 point gap on the same event looks like free money.
It isn't, and this post shows why with code you can run. We will:
- Pull open markets from Polymarket (Gamma API) and Kalshi (public trade API), no keys needed.
- Match the same outcome across platforms, which is harder than it looks.
- Check the biggest gap against the live order book and Kalshi's fee.
Everything below was run on 5 December 2026, and every number is real output.
Part 1: Polymarket markets
Polymarket has two public APIs. Gamma lists events and markets with a snapshot of the best bid and ask. The CLOB API has the live order book. Start with Gamma and filter by a keyword:
# pip install httpx
import json
import re
import httpx
client = httpx.Client(timeout=20, headers={"User-Agent": "odds-compare/1.0"})
def num(x):
try:
return float(x)
except (TypeError, ValueError):
return None
def polymarket_markets(query, pages=3):
"""Open Polymarket markets whose question or event title contains `query` (Gamma API, no key)."""
rows = []
for page in range(pages):
events = client.get("https://gamma-api.polymarket.com/events", params={
"active": "true", "closed": "false", "limit": 100, "offset": page * 100,
"order": "volume24hr", "ascending": "false"}).json()
for ev in events:
for m in ev.get("markets", []):
text = m.get("question") or ""
if m.get("closed") or query.lower() not in f"{text} {ev['title']}".lower():
continue
rows.append({"text": text, "bid": num(m.get("bestBid")), "ask": num(m.get("bestAsk")),
"vol24h": num(m.get("volume24hr")) or 0.0,
"yes_token": json.loads(m.get("clobTokenIds") or "[]")[:1]})
return rows
volume24hr and the prices are plain numbers here. clobTokenIds is a JSON string inside JSON, so it needs its own json.loads. The first id is the YES token.
Part 2: Kalshi markets
Kalshi's public API (api.elections.kalshi.com, despite the name it covers every category) returns events with their markets nested in one call. The catalog is huge, so filter by series instead of scanning everything. Fed decisions live in the KXFEDDECISION series:
def kalshi_markets(series_ticker):
"""Open Kalshi markets of one series, e.g. KXFEDDECISION (public API, no key)."""
data = client.get("https://api.elections.kalshi.com/trade-api/v2/events", params={
"series_ticker": series_ticker, "status": "open", "with_nested_markets": "true"}).json()
rows = []
for ev in data.get("events", []):
if ev["event_ticker"].startswith("KXMVE"): # multi-leg parlays are not comparable
continue
for m in ev.get("markets", []):
rows.append({"text": f"{ev['title']} {m.get('yes_sub_title') or ''}",
"bid": num(m.get("yes_bid_dollars")), "ask": num(m.get("yes_ask_dollars")),
"vol24h": num(m.get("volume_24h_fp")) or 0.0})
return rows
Three things that cost me time:
-
Prices are strings in dollars. Use the
*_dollarsfields ("0.5600"), not the older cent fields. -
Volume is
volume_24h_fp, a string with a fractional count of contracts. -
KXMVEevents are multi-leg parlays ("Team A wins and over 2.5 goals and..."). They match nothing on Polymarket and pollute fuzzy matching, so drop them.
One more practical note: Kalshi sometimes answers 403 to requests from cloud and datacenter IPs. If that happens, run the script from a home connection.
Part 3: matching the same outcome
This is where most comparison scripts go wrong. The two platforms word the same thing differently:
| Polymarket | Kalshi |
|---|---|
| Will the Fed increase interest rates by 25 bps after the January 2027 meeting? | Fed decision in Jan 2027? Hike 25bps |
| Will there be no change in Fed interest rates after the January 2027 meeting? | Fed decision in Jan 2027? Fed maintains rate |
| Will the Fed increase interest rates by 50+ bps after the January 2027 meeting? | Fed decision in Jan 2027? Hike >25bps |
My first attempt used word overlap on event titles across all events. It confidently paired "Prime Minister of Israel after the next election?" with "Prime Minister of Australia after the next election?" (71% overlap) and found almost nothing real. Word overlap can't tell that two different countries make two different questions.
For a recurring event like a Fed meeting, a small canonical key beats fuzzy matching. Map both wordings to (month, year, action, size):
MONTHS = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"]
def fed_key(text):
"""Map both venues' wording to one key: (month, year, action, size)."""
t = text.lower()
month = next((m for m in MONTHS if re.search(rf"\b{m}[a-z]*\b", t)), None)
year = next(iter(re.findall(r"\b20\d\d\b", t)), None)
if re.search(r"\b(cut|decrease)", t):
action = "cut"
elif re.search(r"\b(hike|increase)", t):
action = "hike"
elif re.search(r"no change|maintain", t):
action = "hold"
else:
return None
size = None
if action != "hold":
size = "50+" if re.search(r"50\+|>\s?25", t) else "25" if "25" in t else None
if not (month and year) or (action != "hold" and size is None):
return None
return (month, year, action, size)
def mid(row):
if row["bid"] is None or row["ask"] is None:
return None
return (row["bid"] + row["ask"]) / 2
Note the >25bps rule. On Kalshi "hike >25bps" means 50 or more, which is Polymarket's "50+ bps". A naive number comparison would treat 25 and 50 as a conflict and miss the pair.
The comparison
if __name__ == "__main__":
poly = {fed_key(r["text"]): r for r in polymarket_markets("Fed") if fed_key(r["text"])}
kal = {fed_key(r["text"]): r for r in kalshi_markets("KXFEDDECISION") if fed_key(r["text"])}
print(f"{'meeting':10} {'outcome':9} {'Polymarket':>10} {'Kalshi':>7} {'gap':>7}")
for key in sorted(poly.keys() & kal.keys(), key=lambda k: (k[1], MONTHS.index(k[0]), k[2], k[3] or "")):
p, k = mid(poly[key]), mid(kal[key])
if p is None or k is None:
continue
outcome = key[2] if key[2] == "hold" else f"{key[2]} {key[3]}"
print(f"{key[0].title()} {key[1]:5} {outcome:9} {p:10.3f} {k:7.3f} {(p - k) * 100:+6.1f}pp")
Real output (mid prices, 5 December 2026):
meeting outcome Polymarket Kalshi gap
Dec 2026 cut 25 0.002 0.005 -0.4pp
Dec 2026 hike 25 0.966 0.965 +0.1pp
Dec 2026 hike 50+ 0.013 0.015 -0.2pp
Dec 2026 hold 0.018 0.025 -0.8pp
Jan 2027 cut 25 0.015 0.015 +0.1pp
Jan 2027 cut 50+ 0.010 0.015 -0.5pp
Jan 2027 hike 25 0.535 0.565 -3.0pp
Jan 2027 hike 50+ 0.014 0.025 -1.1pp
Jan 2027 hold 0.425 0.405 +2.0pp
Mar 2027 cut 25 0.042 0.050 -0.8pp
Mar 2027 cut 50+ 0.011 0.015 -0.3pp
Mar 2027 hike 25 0.515 0.540 -2.5pp
Mar 2027 hike 50+ 0.013 0.015 -0.2pp
Mar 2027 hold 0.405 0.390 +1.5pp
The December meeting is almost settled (a 25 bps hike is priced at 96.5%) and both venues agree within a point. The interesting part is January and March, where the platforms disagree by 2 to 3 points on the same outcome.
Part 4: is the gap tradable?
Mid prices lie. To capture the January gap you would buy YES where it is cheap (Polymarket) and NO where YES is expensive (Kalshi), so one of the two legs pays $1 whatever happens. What matters is the price you actually pay, plus fees.
For Polymarket, ask the CLOB for the live book. The levels come sorted so that the best price is the last element of each list, not the first. Reading bids[0] gives you the worst bid in the book, and that bug makes every market look illiquid.
def clob_best(token_id):
"""Live best bid/ask with size from the Polymarket CLOB. The best level is the LAST element."""
book = client.get("https://clob.polymarket.com/book", params={"token_id": token_id}).json()
bids, asks = book.get("bids") or [], book.get("asks") or []
bid = (float(bids[-1]["price"]), float(bids[-1]["size"])) if bids else None
ask = (float(asks[-1]["price"]), float(asks[-1]["size"])) if asks else None
return bid, ask
def kalshi_fee(price, contracts=1):
"""Kalshi taker fee: 0.07 * C * P * (1 - P), rounded up to the cent."""
import math
return math.ceil(0.07 * contracts * price * (1 - price) * 100) / 100
And the check:
key = max(poly.keys() & kal.keys(), key=lambda k: abs((mid(poly[k]) or 0) - (mid(kal[k]) or 0)))
pm_row, k_row = poly[key], kal[key]
bid, ask = clob_best(pm_row["yes_token"][0])
print(f"\nBiggest gap: {key}")
print(f"Polymarket CLOB: best bid {bid}, best ask {ask} (price, shares)")
print(f"Kalshi: bid {k_row['bid']}, ask {k_row['ask']}")
# buy YES where it is cheap and NO where YES is expensive (NO price = 1 - YES bid)
cost = ask[0] + (1 - k_row["bid"]) + kalshi_fee(1 - k_row["bid"])
print(f"YES on Polymarket + NO on Kalshi: {cost:.3f} per $1 payout -> edge {(1 - cost) * 100:+.1f}c")
Biggest gap: ('jan', '2027', 'hike', '25')
Polymarket CLOB: best bid (0.53, 16902.82), best ask (0.54, 1012.1) (price, shares)
Kalshi: bid 0.56, ask 0.57
YES on Polymarket + NO on Kalshi: 1.000 per $1 payout -> edge +0.0c
The 3 point gap between mids shrinks to 2 cents between the prices you can actually trade (54 on one side, 44 on the other), and Kalshi's taker fee eats the rest. Exactly zero. The fee formula is 0.07 × contracts × P × (1 − P) rounded up, so it is largest near 50%, which is exactly where gaps tend to appear.
So the gap is not an arbitrage. It is still a useful signal: when two liquid venues disagree by 3 points on a coin-flip question, one of them is probably slow to react to news, and that is worth knowing if you trade either one.
Pitfalls, in one list
- Best level is the last element in the Polymarket CLOB book.
- Strings everywhere on Kalshi: prices and volumes come as strings.
-
Parlays (
KXMVE) break fuzzy matching. Exclude them. - Different units for the same bucket: ">25bps" on Kalshi is "50+ bps" on Polymarket.
- Mid-price gaps are not tradable gaps. Always check the ask on one side and the bid on the other, with sizes.
- Fees peak at 50%. A 2 cent edge near even odds usually disappears.
- 403 from Kalshi on cloud IPs. Test from a residential connection.
Doing this for every topic, not just the Fed
The canonical key works for one recurring event. For "everything about elections" or "all crypto price markets" you need generic matching with guardrails: normalize wording, require the same numbers, names, years and months, reject opposite directions, and keep close dates within a few days of each other.
I packaged that as an Apify Actor, Polymarket & Kalshi Odds Comparison API. Disclosure: I built it. Fun fact: while writing this post I ran it on the Fed markets and it matched nothing, for exactly the reason in Part 3 ("Hike 25bps" vs "increase interest rates by 25 bps"). I added the same normalization rules to the Actor, and the next run matched all 10 pairs. It costs $0.02 per run plus $0.0015 per market.
# pip install apify-client
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("sequined_lacework/polymarket-kalshi-arbitrage").call(run_input={
"query": "Fed decision",
"platforms": ["polymarket", "kalshi"],
"maxMarketsPerPlatform": 10,
"minVolume24h": 1000,
})
for row in client.dataset(run.default_dataset_id).iterate_items():
match = row.get("matched_counterpart") or {}
print(row["platform"], row["question"][:60], row["yes_probability"],
"| vs", match.get("yes_probability"), "| gap", row.get("cross_platform_diff_pp"))
A real row from that run (20 markets, 21 seconds):
{
"platform": "polymarket",
"question": "Will the Fed increase interest rates by 25 bps after the January 2027 meeting?",
"yes_probability": 0.535,
"best_bid": 0.53,
"best_ask": 0.54,
"orderbook_bid_depth_top3": 21565.05,
"orderbook_ask_depth_top3": 8546.29,
"volume_24h": 74016.1,
"close_time": "2027-01-28T04:59:00Z",
"matched_counterpart": {
"platform": "kalshi",
"market_id": "KXFEDDECISION-27JAN-H25",
"question": "Will the Federal Reserve Hike rates by 25bps at their January 2027 meeting?: Hike 25bps",
"yes_probability": 0.565,
"match_score": 1
},
"cross_platform_diff_pp": -3,
"arbitrage_opportunity": false
}
arbitrage_opportunity stays false for the same reason as in Part 4: it only turns true when buying YES on one side and NO on the other costs less than 98 cents. There is a ready preset on the Store page, Fed rate decision odds on Polymarket vs Kalshi, and it also works as an MCP tool in Claude Desktop or Cursor: https://mcp.apify.com/?actors=sequined_lacework/polymarket-kalshi-arbitrage.
Have you seen a cross-venue gap that actually survived fees? I'd like to know which markets, because in my runs the liquid ones never do.
Top comments (0)