Choose your Polymarket bot stack: Python (py-clob-client 0.34.6), Node.js (@polymarket/clob-client-v2 v1.0.2), or Rust (no official SDK, build on ethers-rs). Pros, cons, latency, code samples.
Choose your Polymarket bot stack: Python (py-clob-client 0.34.6), Node.js (@polymarket/clob-client-v2 v1.0.2), or Rust (no official SDK, build on ethers-rs). Pros, cons, latency, code samples.
By Harley Young, lead writer at Polymarkets.co.il. Last reviewed: May 2026.
What this chapter covers
This is chapter 3 of our 32-part series on building a Polymarket trading bot. We cover the topic in depth across the sections below. Body content for each section is being written and rolled out chapter-by-chapter; FAQ answers and references are already complete and reflect production experience from running our own trader.
Decision framework
Python (default choice]
Node.js (full-stack devs)
Rust (latency-critical hot path)
Setup commands per stack
Code skeleton: fetch order book in 3 languages
When to mix stacks (Python control plane + Rust hot path)
Decision framework
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Python (default choice]
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Node.js (full-stack devs)
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Rust (latency-critical hot path)
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Setup commands per stack
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Code skeleton: fetch order book in 3 languages
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
When to mix stacks (Python control plane + Rust hot path)
This section is in active development. Want to be notified when it goes live? Contact us or watch the authors page.
Frequently asked questions
Is py-clob-client compatible with Polymarket V2?
Yes. py-clob-client 0.34.6 (the version we run in production on our VPS as of May 2026) is V2-compatible and works with the pUSD collateral migration. The package is installed via "pip install py-clob-client".
What is the official Node.js Polymarket SDK?
@polymarket/clob-client-v2 (currently v1.0.2 as of May 2026). The "v2" in the package name is significant - the older @polymarket/clob-client package is V1 and not recommended for new projects. Install via "npm install @polymarket/clob-client-v2".
Is there an official Rust Polymarket SDK?
No. As of May 2026 there is no official Rust SDK from Polymarket. Rust users build directly against the V2 REST and WebSocket APIs using ethers-rs (for EIP-712 signing) and reqwest or hyper (for HTTP/WS). It is more code, but the latency and concurrency wins matter for market making.
Can I use Go for a Polymarket bot?
Yes, technically - Go has good HTTP and Ethereum libraries (go-ethereum). There is no official Go SDK, so you build against the REST API. We do not see Go used as commonly for Polymarket bots as Python or Node.js, but it is fully feasible.
Should I use Python or Node.js if I know both?
Python if your strategy is research-heavy (pandas, NumPy, scikit-learn). Node.js if your strategy is real-time / event-driven and you want the same language client and server. Both reach the same CLOB endpoints; both are fast enough for any non-HFT strategy.
Do I need TypeScript for the Node SDK?
Not required, but recommended. @polymarket/clob-client-v2 ships with TypeScript types, and catching type errors at compile time saves a lot of debugging when EIP-712 signature payloads or order types are wrong.
How fast does a Polymarket bot need to be?
Most strategies are milliseconds-fine, not microseconds. Sports microstructure and market making benefit from sub-100ms; news arbitrage tolerates 500-1000ms. Use Python for the strategy logic, swap to Rust for the hot path only if latency profiling proves it matters for your edge.
عام سوالات
Is py-clob-client compatible with Polymarket V2?
Yes. py-clob-client 0.34.6 (the version we run in production on our VPS as of May 2026) is V2-compatible and works with the pUSD collateral migration. The package is installed via "pip install py-clob-client".
What is the official Node.js Polymarket SDK?
@polymarket/clob-client-v2 (currently v1.0.2 as of May 2026). The "v2" in the package name is significant - the older @polymarket/clob-client package is V1 and not recommended for new projects. Install via "npm install @polymarket/clob-client-v2".
Is there an official Rust Polymarket SDK?
No. As of May 2026 there is no official Rust SDK from Polymarket. Rust users build directly against the V2 REST and WebSocket APIs using ethers-rs (for EIP-712 signing) and reqwest or hyper (for HTTP/WS). It is more code, but the latency and concurrency wins matter for market making.
Can I use Go for a Polymarket bot?
Yes, technically - Go has good HTTP and Ethereum libraries (go-ethereum). There is no official Go SDK, so you build against the REST API. We do not see Go used as commonly for Polymarket bots as Python or Node.js, but it is fully feasible.
Should I use Python or Node.js if I know both?
Python if your strategy is research-heavy (pandas, NumPy, scikit-learn). Node.js if your strategy is real-time / event-driven and you want the same language client and server. Both reach the same CLOB endpoints; both are fast enough for any non-HFT strategy.
Do I need TypeScript for the Node SDK?
Not required, but recommended. @polymarket/clob-client-v2 ships with TypeScript types, and catching type errors at compile time saves a lot of debugging when EIP-712 signature payloads or order types are wrong.
How fast does a Polymarket bot need to be?
Most strategies are milliseconds-fine, not microseconds. Sports microstructure and market making benefit from sub-100ms; news arbitrage tolerates 500-1000ms. Use Python for the strategy logic, swap to Rust for the hot path only if latency profiling proves it matters for your edge.