PMWallets SDKs for Polymarket data, and the copy-trading bot
Official open-source (MIT) clients for Node.js and Python, a ready-to-run Polymarket copy-trading bot built on them, and a command line and MCP server for AI agents.
Node.jsInstall, connect and receive fills in TypeScript.PythonSync and async clients, and the fill stream.Method listEvery call in both languages.Copy-trading botFollow wallets and place orders from your own account.AI agentsThe command line and MCP server.Where to run itStream rules and server location.
The SDKs wrap every endpoint in the API documentation and handle the WebSocket for you: reconnect and keep-alive, missed frames detected by session/seq and replayed from the last fill delivered, de-duplication by eventId, and a persisted cursor so a restart resumes where it stopped. Delivery is at least once: the cursor is saved after your handler returns, so a crash in between replays that fill on restart — make your handler idempotent on eventId. You need an API key — create one on the keys page.
Where to deploy: Ireland (AWS eu-west-1). Our servers are in the United Kingdom, so the fills are pushed from there, and Dublin is next door. For placing orders, the server’s region matters too: Polymarket’s API only closes positions from the UK, the US and several EU countries, and accepts orders from Ireland — the copy-trading bot has traded live from there. This is advice on where to put a server, not a way around where you are: whether you may trade is decided by your own location and Polymarket’s terms, which forbid using a VPN or similar to get around its geographic restrictions. Check its current rules before you go live.
Questions, or want to compare notes with other traders? Join us on Discord.