polymarket-clob-client-v2

Place and manage Polymarket CLOB orders programmatically with viem wallet signing.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/Aradotso/devtools-skills --skill polymarket-clob-client-v2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polymarket-clob-client-v2
Source: https://github.com/Aradotso/devtools-skills/tree/main/skills/polymarket-clob-client-v2
Command: npx skills add https://github.com/Aradotso/devtools-skills --skill polymarket-clob-client-v2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid manual trading workflows by letting you place, cancel, and manage Polymarket CLOB orders through code while consistently retrieving market and account data.

Core Features & Use Cases

  • Order placement & management: Create limit and market orders (including GTC/FOK/FAK/GTD), then cancel single, multiple, or all orders.
  • Market data retrieval: Fetch order books, market metadata, trade history, and current pricing information for trading decisions.
  • Authenticated trading flows: Support wallet-based EIP-712 signing for API key derivation and API-key/HMAC auth for private actions.

Quick Start

Ask the assistant to show you how to initialize the Polymarket CLOB client using your Polygon wallet, derive your API credentials, and place a GTC limit buy order for a given tokenID at a target probability price.

Frequently Asked Questions about polymarket-clob-client-v2

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Polymarket CLOB trading with a TypeScript bot?

You can automate Polymarket CLOB trading by programmatically placing and managing prediction market orders, retrieving order books, and fetching trade history using a TypeScript trading bot. This requires the @polymarkets/clob-client-v2 library for execution.

What authentication methods are supported for Polymarket API trading?

Polymarket API trading supports wallet-based EIP-712 signing to derive API credentials (L1) and API-key/HMAC authentication for private actions (L2). You must configure your chain host properly to execute authenticated trades.

How do I place a limit order on Polymarket programmatically?

To place a limit order on Polymarket programmatically, initialize the CLOB client with your Polygon wallet, derive your API credentials, and submit a GTC limit buy order for a specific tokenID at your target probability price.

Do I need viem to manage Polymarket orders in code?

Yes, you need viem for wallet signing when managing Polymarket orders in code. The client relies on viem to handle the EIP-712 signatures required for deriving API keys and authorizing trades.

Can I cancel multiple Polymarket CLOB orders at once?

Yes, you can cancel multiple Polymarket CLOB orders at once. The client supports canceling single, multiple, or all open orders programmatically, alongside fetching market metadata and current pricing.