polymarket

Query Polymarket public APIs for markets, prices, and history.

27|2|Updated Jan 15, 2024
One-click install
npx skills add https://github.com/erfanzar/Xerxes-Agents --skill polymarket-erfanzar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polymarket
Source: https://github.com/erfanzar/Xerxes-Agents/tree/main/src/python/xerxes/skills/research/polymarket
Command: npx skills add https://github.com/erfanzar/Xerxes-Agents --skill polymarket-erfanzar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Polymarket data is scattered across multiple public APIs (Gamma, CLOB, Data). This Skill consolidates access and presents market questions, prices, and history in a unified way.

Core Features & Use Cases

  • Search markets and events to discover data about prediction markets.
  • Retrieve current prices, orderbooks, and price history for markets you care about.
  • Quick insights for risk assessment, market research, or decision making with read-only endpoints.

Quick Start

Use this Skill to fetch the latest market prices and history for a given Polymarket slug or token.

Frequently Asked Questions about polymarket

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

FAQPage Schema
How do I retrieve current prices and orderbook data for Polymarket prediction markets?

You can retrieve current Polymarket prices and orderbook data by querying public REST endpoints. The Skill parses JSON responses, including double-encoded fields, to return formatted current prices and orderbook details.

What is the best way to search for specific prediction market events and odds?

The best way to search for prediction market events and odds is to use the Skill's market search functionality. It queries the Gamma API to discover market questions and returns formatted results suitable for CLI presentation.

Can I access Polymarket price history for risk assessment and market research?

Yes, you can access Polymarket price history for risk assessment and market research. The Skill fetches historical price data from public APIs, allowing you to analyze market movements and trends over time.

Does this Skill support executing trades on Polymarket or is it read-only?

This Skill is strictly read-only and does not support executing trades on Polymarket. It only queries public APIs to retrieve market data, prices, and history for analysis and decision-making purposes.

How do I handle double-encoded JSON fields when parsing Polymarket API responses?

When parsing Polymarket API responses, double-encoded JSON fields are handled automatically by the Skill. It implements JSON parsing logic to decode nested fields and present formatted results without manual intervention.

What Polymarket APIs are consolidated by this Skill for querying market data?

This Skill consolidates access to the Gamma, CLOB, and Data APIs for querying Polymarket market data. It unifies these public APIs to present market questions, prices, and history in a single interface.