June 26, 2026 · 15 min read

    The 10 Best Polymarket Repo & SDK Options for 2026

    The 10 Best Polymarket Repo & SDK Options for 2026

    Want to build a trading bot, automate a strategy, or pull live Polymarket data for analysis, but keep landing on stale repos and half-maintained wrappers? That's the core problem with searching for the best Polymarket repo. Most lists lump everything together, so a mobile trader, a Python quant, and a Rust bot builder all get the same answer.

    That doesn't work. Polymarket has over 30,000 active prediction markets and an open public REST API with no API key, authentication, or wallet required for market and event data. The platform is open enough that you can move fast, but that also means there's a lot of noise around which repo fits your workflow.

    This guide gets to the point. These are the repos and tools worth knowing if you trade politics, sports, crypto, weather, or culture markets and want better execution, better data, or less manual clicking. Some are official SDKs for building directly on the orderbook. Some are better for streaming signals or wiring up bots. One, Polycool, is what I'd use if the goal is execution on a phone instead of maintaining a codebase.

    If you're building anything that touches credentials or automation, keep your security hygiene tight. AuditYour.App's Supabase security tips are worth reviewing before you expose keys, webhooks, or backend routes.

    1. Polycool

    Polycool

    Need the best Polymarket repo, or do you need a faster way to place trades that matter? For a lot of traders, the primary problem is not missing code. It is missing execution, signal filtering, and a workflow that works from a phone.

    Polycool is not a GitHub repo. I'm still putting it first because this list is organized by use case, not by whether something lives on GitHub. If your goal is to trade, follow high-signal wallets, and act quickly without maintaining bots or infra, Polycool solves the right problem. The product and feature set are outlined on the Polycool blog.

    Who it's for

    Polycool fits traders who want execution and discovery more than they want to build.

    It makes sense for:

    • Mobile-first traders: You can monitor markets and place trades without being tied to a desktop stack.
    • News-reactive traders: Smart Feed and news-driven discovery help cut time between signal and order entry.
    • Copy-trading users: Mirroring matters more than another SDK if you are not writing custom automation.
    • Experienced Polymarket users: Orderbook access plus market and limit orders keep it useful after the beginner phase.

    This is also the easiest pairing in the article. Use repos like the CLI or SDKs for research, monitoring, or custom logic. Use Polycool as the execution layer when you want a cleaner mobile workflow.

    Practical rule: If your bottleneck is mobile execution speed, another client library will not fix it. A better trading interface will.

    What works and what doesn't

    What works is the full trading loop. Polycool combines wallet onboarding, trader discovery, copy trading, and execution controls in one app. That matters because the usual alternative is stitching together wallet tooling, alerts, and order placement yourself, then maintaining all of it when APIs or market structure shift.

    The strongest features are the ones that reduce bad entries, not the marketing-friendly ones. Copy trading gets attention, but the core value resides in controls like slippage guards, price filters, and proportional allocation. Those are the settings that decide whether following a wallet is useful or expensive.

    What does not change is market reality. Copy trading is not edge by itself. Fill quality, timing, liquidity, and your own risk settings still decide results. For the best Polymarket repo, that is the trade-off to understand early. Sometimes the right answer is a codebase. Sometimes it is an app that lets you execute without building one.

    2. Polymarket CLI

    Polymarket CLI (official)

    The official Polymarket CLI repository is the fastest way to get your hands dirty without spinning up a full app. If you like testing order flow from a terminal, this is a good tool.

    I like CLI tools for one reason. They force you to see the actual trading primitives. Search markets. Read books. Post and cancel orders. Stream updates. Dump JSON. That's the right mental model before you start hiding everything behind your own abstractions.

    Best use case

    This one is for power users, scripting-heavy traders, and devs prototyping bots or agents. It's also good for sanity checks when your app code is doing something weird and you want to isolate whether the issue is in your logic or in the exchange interaction.

    A few practical strengths stand out:

    • First-party support: It follows the current stack more closely than most community wrappers.
    • Script-friendly output: JSON makes it easy to wire into shell scripts or lightweight services.
    • Low ceremony: You can test workflows before deciding which SDK becomes your base layer.

    Trade-offs

    The downside is obvious. A CLI isn't an analytics suite. You won't get portfolio intelligence, copy trading, or polished signal feeds out of the box. It's a terminal-native operator tool.

    Use the CLI when you're exploring mechanics. Stop using it as your main interface once you know what your production workflow needs.

    3. ts-sdk

    ts-sdk (official unified TypeScript SDK)

    If you're starting a new TypeScript build, ts-sdk from Polymarket is the cleanest default choice. It unifies REST and WebSocket access in one package, which saves a lot of glue code.

    That matters because fragmented clients usually create subtle bugs. One package handles auth one way, another models markets differently, a third uses slightly different event naming. By the time you normalize everything, you've built your own SDK anyway.

    Who should pick it

    Choose ts-sdk if you're building:

    • A trading dashboard
    • A market scanner
    • A custom signal bot
    • A browser or server-side TypeScript app

    It's the best starting point for modern JavaScript and TypeScript work because it covers more than just order placement. If you need one repo to anchor a serious web stack, this is often the best Polymarket repo to start from.

    Quick start

    import { PolymarketClient } from "@polymarket/ts-sdk";
    
    const client = new PolymarketClient();
    
    async function main() {
      const markets = await client.getMarkets();
      console.log(markets);
    }
    
    main();
    

    The exact API surface will evolve, so treat snippets like scaffolding, not pasted production code. But the pattern is what matters: one client, one package, fewer moving pieces.

    4. py-sdk

    Python users usually end up stitching together requests code, a trading client, and a separate data helper. Polymarket's py-sdk cuts that down.

    That makes it a strong fit for researchers and systematic traders who spend more time in notebooks and batch jobs than front-end frameworks. You can keep analysis, tracking, and execution logic closer together.

    Why it's useful

    The main advantage is reduced integration drag. In research workflows, that matters more than people admit. Every extra client means more auth handling, more schema translation, and more places for your pipeline to break at market open.

    Use py-sdk when you want a Python-native layer across common Polymarket functions without dropping straight into lower-level plumbing first.

    The best Python tool isn't always the most granular one. It's the one that lets you test an idea before the market moves.

    Quick start

    from polymarket import PolymarketClient
    
    client = PolymarketClient()
    
    markets = client.get_markets()
    print(markets)
    

    If you need specialized CLOB behavior later, you can still move lower in the stack. For many research setups, starting higher is the smarter path.

    5. clob-client-v2

    clob-client-v2 (official TypeScript CLOB client)

    clob-client-v2 is where you go when you need direct control over trading semantics in TypeScript. This is less about convenience and more about precision.

    Polymarket supports full orderbook access across more than 30,000 distinct markets, including both market orders for instant liquidity and limit orders for precise price entry. If your app depends on those details, a dedicated CLOB client is often the right tool.

    When it beats the unified SDK

    Use clob-client-v2 when you care about:

    • Explicit order handling
    • Authentication flows
    • Order-book reads
    • Fine-grained trading logic

    This is a good fit for execution-heavy apps, not general-purpose dashboards. If you're tuning fill behavior or writing custom order management, the narrower focus is a strength.

    Quick start

    import { ClobClient } from "@polymarket/clob-client-v2";
    
    const client = new ClobClient({ /* config */ });
    
    async function run() {
      const book = await client.getOrderBook("condition-id");
      console.log(book);
    }
    
    run();
    

    The trade-off is scope. For fresh builds, ts-sdk is usually simpler. For execution control, clob-client-v2 still has a clear place.

    6. py-clob-client-v2

    py-clob-client-v2 (official Python CLOB client)

    For Python traders who want live order placement without relying on a higher-level abstraction, py-clob-client-v2 on PyPI is the practical choice. It's the repo category I'd recommend for quants who already know they'll be trading, not just analyzing.

    The value here is directness. You can read books, create orders, cancel them, and handle account operations in Python without inventing your own client from scratch.

    What to watch out for

    Python makes iteration easy, but that also means people rush into production with lightly tested scripts. That's risky in prediction markets because execution details matter more than the backtest usually suggests.

    The overlooked issue isn't whether a strategy “works” in theory. It's whether your fills, slippage, and timing still make sense after you leave the notebook.

    Arbitrage and copy-trading ideas often look cleaner on paper than in a live orderbook.

    That warning matters because analysis of prediction markets has shown arbitrage can exist while still being constrained by liquidity fragmentation and latency, which makes “guaranteed” profits theoretical for many non-institutional users in practice, as discussed in the arXiv analysis of NBA markets and related Polymarket execution realities.

    Quick start

    from py_clob_client.client import ClobClient
    
    client = ClobClient("https://clob.polymarket.com", key="YOUR_KEY")
    
    book = client.get_order_book("condition-id")
    print(book)
    

    7. rs-clob-client-v2

    rs-clob-client-v2 (official Rust CLOB client)

    Rust is not for everyone. But if latency and reliability drive your architecture, rs-clob-client-v2 is the one to look at.

    Prediction market trading has a speed problem that most “follow top wallets” content glosses over. One underserved point from analysis of Polymarket strategy content is that guides often recommend copying top traders without explaining execution windows, latency, or why those strategies can break for retail users who can't trade at similar speed, as highlighted in this discussion of mid-frequency trader behavior and copy-trading viability.

    Who should use Rust here

    Rust makes sense for:

    • Latency-sensitive services
    • Always-on order managers
    • Typed backends with strict failure handling
    • Teams already comfortable with async Rust

    If your team is all Python and JavaScript, don't force this. The learning curve is real. But if you're already in Rust, using a native client is cleaner than bridging through another runtime.

    Quick start

    use rs_clob_client_v2::client::ClobClient;
    
    #[tokio::main]
    async fn main() {
        let client = ClobClient::new("https://clob.polymarket.com");
        let book = client.get_order_book("condition-id").await;
        println!("{:?}", book);
    }
    

    8. real-time-data-client

    real-time-data-client (official TypeScript)

    Some projects don't need a full trading SDK first. They need live state. real-time-data-client is built for that.

    If you're building alerts, dashboards, signal monitors, or a market feed that reacts to fresh trades, this is the cleaner pick over polling REST endpoints. WebSocket-first tooling is what makes a signal product feel alive instead of stale.

    Best use case

    This repo is good for:

    • Price alert systems
    • News-reactive monitors
    • Live trader dashboards
    • Bots that separate data ingestion from execution

    It pairs well with a separate trading client. Keep your feed layer and your execution layer decoupled unless you have a strong reason not to.

    Quick start

    import { RealTimeClient } from "@polymarket/real-time-data-client";
    
    const client = new RealTimeClient();
    
    client.on("trade", (msg) => {
      console.log(msg);
    });
    
    client.connect();
    

    Plain rule: if your app depends on low-latency updates, start with the streaming client and add trading only after your event handling is stable.

    9. Polymarket US SDKs

    Polymarket US SDKs (official; region-specific APIs for US users)

    If you're building for the US product, use the US-specific stack. Don't try to treat it as a drop-in swap for the international APIs. The official entry point is Polymarket US institutional documentation.

    This sounds obvious, but people still burn time assuming endpoint parity. Region-specific APIs usually differ in auth, account handling, and surrounding compliance expectations. Build against the right surface from day one.

    Why this matters

    The US SDKs are the right pick for teams building compliant Python or TypeScript apps for US users. They cover read paths and trading paths, but the important part is separation. Keep your codebase explicit about whether it targets Polymarket global or Polymarket US.

    There's another reason to stay close to official docs and official repos when money is involved. The open source ecosystem around trading bots attracts junk and worse.

    Don't judge a trading repo by stars alone. In this niche, credibility theater is cheap.

    That warning got sharper after StepSecurity reported a malicious Polymarket bot distributed through a hijacked GitHub organization, with dependencies that stole wallet keys and opened an SSH backdoor in victim environments, detailed in StepSecurity's analysis of the compromised Polymarket bot repo.

    10. PMXT

    PMXT (community; “CCXT for prediction markets”)

    PMXT is the best non-official option on this list if you think beyond one venue. It's a community project that aims to do for prediction markets what CCXT did for crypto exchange integrations.

    That makes it useful for cross-venue analytics, multi-venue bots, and shared tooling where you don't want to keep rewriting venue adapters. If your strategy compares structures across platforms, PMXT can save time.

    Where it fits

    Use PMXT when you need:

    • A unified interface across multiple prediction venues
    • CLI and agent tooling
    • Migration flexibility
    • Self-hosted or hosted deployment options

    The risk is the same as with any non-official adapter. Venue changes can break wrappers. You need to monitor upstream behavior instead of assuming stable parity forever.

    Practical take

    For single-venue Polymarket builds, I'd still choose an official SDK first. For cross-venue research and bot scaffolding, PMXT earns its spot.

    One final market detail to keep in mind if you're building execution logic around category-based strategies. On March 30, 2026, Polymarket Global implemented per-category taker fees set at 7.2% for crypto markets, 4% for politics, 3% for sports, and 0% for geopolitics. If your code treats all categories like identical execution environments, your assumptions are already off.

    Top 10 Polymarket Repos: Feature Comparison

    Tool Key features UX & Quality (★) Value & Pricing (💰) Target & USP (👥 / ✨)
    Polycool 🏆 Mobile-first non-custodial app; Smart Feed, copy-trading, 30k+ markets, Auto‑Redeem ★4.9 early-user; industry‑leading latency; fast onboarding 💰Free download; ~1% trade fee + market fees 👥 Retail & power traders, ✨ Real-time verified top‑trader mirroring, full orderbook, slippage guards
    Polymarket CLI (official) Rust CLI: search/list markets, stream data, submit/cancel orders; JSON output ★ Official tooling; script-friendly; APIs may evolve 💰Free, open‑source 👥 Devs & bot builders, ✨ Terminal automation + JSON for agents
    ts-sdk (official) Unified TypeScript package wrapping REST + WebSocket for CLOB v2 ★ Recommended for new TS projects; actively maintained 💰Free, open‑source 👥 TypeScript developers, ✨ Single integration surface for v2 stack
    py-sdk (official) Unified Python SDK covering common Polymarket functions ★ Official, Pythonic; reduces glue code 💰Free, open‑source 👥 Python devs & researchers, ✨ Bridges data + trading workflows
    clob-client-v2 (official) TypeScript CLOB client: order placement, book reads, auth flows ★ Production‑oriented; strong typing & examples 💰Free, open‑source 👥 JS/TS trading apps, ✨ Full order semantics (limit/market/FOK/FAK) & L1/L2 auth
    py-clob-client-v2 (official) Python CLOB client for placing/cancelling orders, batch ops ★ Up‑to‑date v2 semantics; Pythonic API 💰Free, open‑source 👥 Quants & Python traders, ✨ Modern v2 methods + auth helpers
    rs-clob-client-v2 (official) Native Rust CLOB client for async, low‑latency pipelines ★ High performance & type safety 💰Free, open‑source 👥 Rust teams / HFT bots, ✨ Compile‑time safety and low‑latency ops
    real-time-data-client (official) WebSocket client for live price, trade & market updates ★ Purpose‑built low‑latency feed; filtering & snapshot init 💰Free, open‑source 👥 Dashboards, alerts & pipelines, ✨ Live streams with message typing
    Polymarket US SDKs (official) Region-specific Python & TS SDKs; US auth & endpoints ★ Tailored for US compliance; official examples 💰Free; requires US API keys 👥 US‑compliant apps & institutions, ✨ Region-specific auth/endpoints
    PMXT (community) Unified multi-venue API/SDK (TS + Python); CLI & agent tooling ★ Active community; cross‑venue focus 💰Free OSS; hosted optional (extra dependency) 👥 Arbitrage & multi‑venue bot builders, ✨ “CCXT for prediction markets” multi‑venue abstraction

    From Code to Copy Trading Your Next Move

    What should you use after scanning the best Polymarket repos. Another SDK, or a tool that gets you from signal to position faster?

    The answer depends on the job. Build on ts-sdk or py-sdk if you want the cleanest path into the exchange and can live with higher-level abstractions. Drop to the v2 CLOB clients if order placement details, auth flows, and execution behavior matter more than convenience. Use real-time-data-client if your app starts with live state. Use PMXT if your strategy spans multiple venues. Stay with the US SDKs if you operate under US-specific requirements and do not want to patch regional differences yourself.

    That use-case split matters more than arguing about a single "best" repo. Unified SDKs help app teams ship faster. Language-specific CLOB clients give trading systems tighter control. Data clients fit dashboards, alerts, and research pipelines. A good repo choice starts with the workflow you need to support, not the GitHub star count.

    A lot of traders do not need to maintain that stack at all.

    They need filtered signal, fast execution, and clear controls around who they follow. That is the practical gap between developer tooling and an actual trading workflow. Repos help you build. They do not automatically help you choose better markets, monitor winning wallets, or react quickly on mobile.

    That is where Polycool fits the stack described earlier. It pairs well with the repos in this list because it handles the user-facing layer: copy trading, Smart Feed, Insider Feed, orderbook trading, and a non-custodial mobile flow. The trade-off is straightforward. Building your own app gives you full control and more room to customize. Using a polished client gets you operating much faster and removes a lot of integration work.

    If you are a developer, the practical pattern is simple. Use the official repos for data collection, automation, or custom execution logic. Use a mobile app when speed, usability, and follow-based trading matter more than maintaining your own interface.

    That combination is often the better move than treating repos and apps as competing choices.