CCXT now supports Prediction Markets! (v4.5.66+) Trade Polymarket… — CCXT Announcements — TG.ME

CCXT now supports Prediction Markets! (v4.5.66+)

Trade Polymarket, Kalshi, Hyperliquid, Limitless and Myriad with the unified CCXT API — available in all CCXT languages: JavaScript/TypeScript, Python, PHP, C#, Go and Java. More prediction exchanges will be added shortly!

Instead of a market symbol you address an outcome (MARKET:LABEL, e.g. TRUMP_WIN_2024:YES) — or just pass the venue's raw outcome id, both work. Prices are probabilities (0–1), amounts are shares. Discovery starts with fetchEvents({}) — no loadMarkets() needed:

import ccxt.prediction
exchange = ccxt.prediction.polymarket()
events = await exchange.fetch_events({'query': 'bitcoin'})
outcome = events[0]['markets'][0]['outcomes'][0]['outcome']
order = await exchange.create_order(outcome, 'limit', 'buy', 5, 0.02)


All the unified methods work: fetchTicker, fetchOrderBook, createOrder, fetchPositions, watch* and more.

📕Docs: https://github.com/ccxt/ccxt/wiki/Prediction-Markets
FAQ: https://github.com/ccxt/ccxt/wiki/FAQ#how-to-use-the-prediction-exchanges-in-ccxt

Read the full announcement: https://github.com/ccxt/ccxt/issues/29226

If you have any questions or require assistance, please do not hesitate to reach out to the CCXT team.

Best regards,
The CCXT Team
GitHub
Prediction Markets
A cryptocurrency trading API with more than 100 crypto and prediction exchanges in JavaScript / TypeScript / Python / C# / PHP / Go / Java - ccxt/ccxt
❤11👍4🔥4😁1🙈1🤪1
July 16, 2026 605 1 3