PolyClaw’s market commands connect to the Polymarket Gamma API to fetch live prediction markets. You can browse by volume, filter by keyword, look up individual markets by ID or slug, and explore event groups — all from the terminal or in JSON mode for agent/script pipelines.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/deniszidbaev-cmyk/polyclaw-cmyk/llms.txt
Use this file to discover all available pages before exploring further.
Market IDs can be obtained from the output of
polyclaw markets trending or polyclaw markets search, or extracted from the Polymarket URL slug (e.g. https://polymarket.com/event/will-trump-win-2028 → ID will-trump-win-2028).polyclaw markets trending
Lists the top prediction markets sorted by 24-hour trading volume.
Usage
Number of markets to return.
Show the full question text without truncation. By default questions are truncated at 60 characters in table mode.
Output as a JSON array for agent or script consumption. Full question text is always included in JSON mode.
polyclaw markets search <query>
Searches markets by keyword, filtering client-side from a large batch fetched via the Gamma API.
Usage
The Gamma API does not support server-side text search. PolyClaw fetches a large batch of markets and filters client-side by matching your query against market questions. Results are ranked by 24h volume.
Keyword or phrase to search for in market questions.
Maximum number of matching results to return.
Show full question text without truncation.
Output as a JSON array.
polyclaw market <market_id>
Shortcut for polyclaw markets details <market_id>. Returns the full market object as JSON.
Usage
Accepts any of the following:
- A numeric Gamma market ID (e.g.
123456) - A full market ID string (e.g.
abc123def456...) - A Polymarket slug (e.g.
will-trump-win-2028) - A full Polymarket URL (e.g.
https://polymarket.com/event/will-trump-win-2028)
| Field | Description |
|---|---|
id | Market ID |
question | Full market question |
slug | URL slug |
condition_id | CTF condition ID (needed for on-chain operations) |
prices.yes / prices.no | Current YES and NO prices (0–1) |
tokens.yes_token_id / tokens.no_token_id | ERC-1155 token IDs for each outcome |
volume.24h / volume.total | 24-hour and total trading volume in USD |
liquidity | Current liquidity in USD |
status.active | Whether the market is still open for trading |
status.resolved | Whether the market has been resolved |
status.outcome | Resolution outcome if resolved |
end_date | Scheduled closing date |
url | Link to the market on polymarket.com |
polyclaw markets events
Lists event groups — multi-market events that bundle related markets together under a shared topic.
Usage
Number of events to return.
Show full question text for each market without truncation.
Output full event data as a JSON array. JSON mode includes up to 5 markets per event; table mode shows up to 3.