TGViewer
CCXT Announcements CCXT Announcements @ccxt_announcements · 840 subscribers
Post #122 629
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
  • 🤪 2
  • 😁 1
  • 🙈 1
More from @ccxt_announcements
  1. Sep 19, 2026📘 4.5.81 released! Upgrade now to take advantage of: 🔧 Updates & Fixes: Upgrade to v4.5.…
  2. Sep 17, 2026🇸🇬 CCXT is coming to TOKEN2049 Singapore! We’d love to meet members of the CCXT communit…
  3. Sep 14, 2026Hello, CCXT community! 👋 🚀 Introducing ccxt-mcp — the official CCXT MCP server Give your…
  4. Sep 7, 2026Hello, CCXT community! 👋 We're excited to announce the public release of the Rust version…
  5. Sep 4, 2026⏰ Last call — registration closes Monday The BTSE × CCXT Trading Competition registration…
  6. Sep 1, 2026Hello, CCXT community! 👋 We are happy to announce the integration of the Revolut X exchan…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →