trading-polymarket

Automate Polymarket trading workflows using the py_clob_client API.

71|22|Updated Apr 6, 2020
One-click install
npx skills add https://github.com/nirholas/agenti --skill trading-polymarket-nirholas
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trading-polymarket
Source: https://github.com/nirholas/agenti/tree/main/packages/protocols/x402-cloddsbot/src/skills/bundled/trading-polymarket
Command: npx skills add https://github.com/nirholas/agenti --skill trading-polymarket-nirholas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Polymarket trading automation with full programmatic access to market data, orders, and positions via py_clob_client, enabling reliable, repeatable operations.

Core Features & Use Cases

  • Market data access: fetch midpoints, price feeds, and orderbooks to inform decisions.
  • Order execution: place limit and market orders with advanced controls (GTC/FOK, neg-risk handling).
  • Position management: track open positions, balances, and unrealized PnL; manage auto-redeems and heartbeats for active strategies.
  • Use Case: Build automated strategies that monitor markets and execute trades when conditions are met.

Quick Start

Configure POLY_API_KEY, POLY_API_SECRET, and POLY_API_PASSPHRASE, then use the /poly commands to search markets, view orderbooks, and place trades.

Frequently Asked Questions about trading-polymarket

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

FAQPage Schema
How do I automate Polymarket trading using the API?▼

Automate Polymarket trading by interfacing with the py_clob_client API to access market data, place orders, and track positions. Configure environment-keyed credentials like POLY_API_KEY and POLY_API_SECRET to enable secure, deterministic execution.

What's the best way to place limit and market orders on Polymarket programmatically?▼

Place limit and market orders on Polymarket programmatically using a Python-based execution layer. The workflow supports advanced controls including GTC and FOK time-in-force options, alongside neg-risk handling for complex market environments.

Can I track open positions and unrealized PnL on Polymarket automatically?▼

Track open positions and unrealized PnL on Polymarket automatically through dedicated position management features. The system monitors balances and manages auto-redeems and heartbeats to maintain active trading strategies.

Do I need specific API credentials to access the Polymarket CLOB?▼

Accessing the Polymarket CLOB requires specific API credentials. You must configure POLY_API_KEY, POLY_API_SECRET, and POLY_API_PASSPHRASE in your environment to authenticate requests and ensure secure trading operations.

Does the Polymarket automation client support TWAP execution?▼

The Polymarket automation client supports TWAP execution for automated trading workflows. This advanced feature allows you to break up large orders over time, integrated within the Python-based execution layer alongside robust error handling.

How do I fetch Polymarket market data like midpoints and orderbooks via API?▼

Fetch Polymarket market data like midpoints and orderbooks via the py_clob_client API. This market data access functionality informs automated trading decisions by providing real-time price feeds and orderbook depth.