Skip to main content
skill CX Codex

polymarket-api — Claude Code skill: what it does, how to install

Provides integration patterns for Polymarket CLOB and Gamma APIs, covering market subscriptions, fee calculation, and order execution.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add agentmc15/polymarket-trader --skill polymarket-api -a claude-code
Open on GitHub

What polymarket-api does

This skill guides coding assistants through interacting with Polymarket endpoints on the Polygon network (chain ID 137). It covers the Central Limit Order Book (CLOB) at https://clob.polymarket.com across three authentication levels, alongside event querying via Gamma API at https://gamma-api.polymarket.com. Implementation snippets use Python with py-clob-client, httpx, and asynchronous WebSockets.

In market queries, condition_id acts as the overall market identifier, while token_id targets specific outcome orderbooks. Mixing them up causes invalid API responses. Polymarket operates as a taker-only venue where maker fees remain 0. If reading taker_base_fee directly from market payloads, code must divide the integer by 10,000, since values arrive in basis points rather than standard decimal rates.

Submitting transactions requires private key credentials and a funder address in environment variables. Public endpoints enforce a threshold of around 100 calls per minute, while authenticated endpoints allow roughly 1000.

What it helps with

  • Configure py-clob-client for automated limit orders on Polygon
  • Stream real-time orderbook updates over market WebSockets
  • Retrieve active event metadata using the Gamma REST client
  • Calculate taker fees based on market category rates

Example prompts for the agent

  • Write a Python script using py-clob-client to place a GTC buy order.
  • Show how to connect to the Polymarket WebSocket feed for market updates.
  • How do I calculate the taker fee when given a category rate and fill price?

How to install polymarket-api

1Skills CLI (Vercel)

npx skills add agentmc15/polymarket-trader --skill polymarket-api -a claude-code

2Manually: put the files in place

~/.claude/skills/polymarket-api/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/polymarket-api/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about polymarket-api

How do I install polymarket-api in Claude Code?

Run npx skills add agentmc15/polymarket-trader --skill polymarket-api -a claude-code. The file will be placed in ~/.claude/skills/polymarket-api/SKILL.md.

What does the polymarket-api skill do?

It supplies reference architectures, Python snippets, and endpoint details for Polymarket CLOB and Gamma APIs. It assists with order placement, price calculation, and market data ingestion.

Why is dividing taker_base_fee by 10,000 required?

The CLOB API returns fee overrides in basis points instead of decimal values. For instance, a fee entry of 700 represents 0.07, so omitting the division inflates calculated costs by 10,000 times.

Similar skills

Everything for Finance and business →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor