npx skills add smithery/cyl19970726 --skill polymarket-knowledge
cyl19970726/poly-sdk · Archived
polymarket-knowledge
Polymarket CLOB API knowledge base for order management, WebSocket events, and trading operations. Use when working with order lifecycle (place, fill, cancel), debugging WebSocket USER_TRADE/USER_ORDER events, understanding API field mappings, or implementing trading logic.
Installation
npx skills add cyl19970726/poly-sdk --skill polymarket-knowledge
Stronger alternatives
This repository is archived — consider an actively maintained alternative.
Queries Polymarket market data and CLOB state, and manages CLOB orders via the Grimoire venue C…
11.9K installsPolymarket sports prediction markets — read-only live odds, prices, order books, events, series…
1.2K installsDeep integration guide for Polymarket's CLOB API, Gamma API, and on-chain data. Use when buildi…
962 installsPolymarket integration for prediction market trading on Polygon. Covers authentication (L1 EIP-…
536 installsSimilar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Trade prediction markets on Polymarket - buy outcome tokens (YES/NO and categorical markets), c…
490 installsUse this skill whenever the user wants to find trading opportunities, detect arbitrage, analyze…
474 installsComprehensive Polymarket skill covering prediction markets, API, trading, market data, and real…
432 installsUnderstand Polymarket prediction markets for sports and esports betting. Use when working with …
387 installsDeep dive on a Polymarket market — OHLCV, orderbook, top holders, positions, trades, and PnL le…
374 installsWhat is a Polymarket trader betting on? Trades by address, PnL breakdown, and market context. U…
367 installsMore details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Repository health
copy-trading
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md2,365 B -
docs
SUMMARY.md302 B
History
- First recorded snapshot · 32 installs
SKILL.md
Polymarket Knowledge
Overview
Comprehensive reference for Polymarket CLOB API integration, focusing on order management and real-time event handling.
Quick Reference
Order Types
| Type | Behavior | Use Case |
|---|---|---|
| GTC | Good Till Cancelled | Maker orders, liquidity provision |
| GTD | Good Till Date | Time-limited orders |
| FOK | Fill Or Kill | Must fill completely or cancel |
| FAK | Fill And Kill | Fill what you can, cancel rest |
Order Requirements
- Minimum order value: $1 USDC
- Minimum shares: 5
- Tick size: 0.01 (prices must be 0.01, 0.02, ... 0.99)
Order State Machine
See [references/order-state-machine.md](references/order-state-machine.md) for complete state diagram and transitions.
States: PENDING → OPEN → PARTIALLY_FILLED → FILLED/CANCELLED/EXPIRED
API Status Mapping:
live→ OPENmatched(partial) → PARTIALLY_FILLEDmatched(full) → FILLEDdelayed→ PENDINGcancelled→ CANCELLEDexpired→ EXPIRED
WebSocket Events
See [references/websocket-events.md](references/websocket-events.md) for field mappings and examples.
Key Endpoints:
- Market:
wss://ws-subscriptions-clob.polymarket.com/ws/market - User:
wss://ws-subscriptions-clob.polymarket.com/ws/user(authenticated)
USERORDER Event Types: PLACEMENT, UPDATE, CANCELLATION USERTRADE Statuses: MATCHED, MINED, CONFIRMED, RETRYING, FAILED
Common Pitfalls
- Wrong field names: API uses
matchedamountnotmatchedsize,sizematchednotmatchedsize - Wrong endpoint: USER events require
/ws/user, not/ws/market - USDC type: Polymarket uses USDC.e (bridged), not native USDC
Resources
- [references/order-state-machine.md](references/order-state-machine.md) - State transitions and validation
- [references/websocket-events.md](references/websocket-events.md) - WebSocket field mappings
- [references/api-field-mappings.md](references/api-field-mappings.md) - API response field reference