braindead-digital

polymarket-references

Activates when users mention Polymarket, prediction markets, CLOB trading, py-clob-client, conditional tokens, or Gamma API. Provides foundational knowledge for building bots, tools, and integrations.

braindead-digital 0 Updated 4mo ago

Resources

2
GitHub

Install

npx skillscat add braindead-digital/polymarket-skills/polymarket-references

Install via the SkillsCat registry.

SKILL.md

Polymarket Reference Documentation

Core knowledge base for Polymarket development.

Quick Reference

Topic File
Getting started resources/quickstart.md
Terms & definitions resources/glossary.md
API endpoints resources/api-reference.md
Order placement resources/order-guide.md
SDK setup resources/clients.md

APIs

API Purpose Base URL
CLOB Trading, orders https://clob.polymarket.com
Gamma Market discovery https://gamma-api.polymarket.com
Data Positions, history https://data-api.polymarket.com
WebSocket Real-time data wss://ws-subscriptions-clob.polymarket.com

Reference Files

Load as needed:

Getting Started

  • resources/quickstart.md - First order, client init, signature types
  • resources/glossary.md - Token ID, condition ID, order types, CTF terms
  • resources/fees.md - Fee structure, maker rebates

API & SDK

  • resources/api-reference.md - All endpoints, auth, WebSocket, Subgraph
  • resources/clients.md - Python, TypeScript, Rust SDKs, contracts
  • resources/order-guide.md - GTC/GTD/FOK/FAK, parameters, lifecycle

Bot Development

  • resources/bot-patterns.md - WebSocket, reconnection, order sizing
  • resources/troubleshooting.md - Common errors and solutions

Advanced Topics

  • resources/neg-risk.md - Winner-take-all events, conversion
  • resources/ctf.md - Split/merge/redeem operations
  • resources/builders.md - Builder program, gasless transactions
  • resources/market-makers.md - MM setup, liquidity rewards, RFQ

Market Mechanics

  • resources/market-theory.md - Prediction market fundamentals
  • resources/market-lifecycle.md - Creation, pricing, resolution, disputes
  • resources/uma.md - UMA oracle, DVM voting, dispute resolution