[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Polymarket market listings](https://spiral.ai/integrations/claude-code/polymarket-market-listings)

# How to Use Polymarket market listings in Claude Code

Returns market records with questions, outcomes, probabilities, volume, and status for browsing and comparison. Use it to discover questions and collect their IDs or slugs for later lookups.

|  |  |
| --- | --- |
| Model | Polymarket market listings |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.013 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Polymarket market listings in Claude Code

- Use Polymarket market listings to browse open markets ending in December 2026, retain questions mentioning Bitcoin, and generate a reference table in this project.
- Use Polymarket market listings to retrieve closed markets ending in November 2026 and add a report of their questions, IDs, slugs, and status to this project.
- Use Polymarket market listings to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Polymarket market listings and tell me what changed since last week.
- Check Polymarket market listings and summarize what you find in three bullet points.

## How to set up Polymarket market listings in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Polymarket market listings**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "polymarket/markets/list",
    "input": {
      "limit": 1
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Polymarket market listings on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Polymarket market listings tools and prices

- [Polymarket · Markets list](https://spiral.ai/tools/alexandria/polymarket/markets/list) (Alexandria): $0.013 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| id |  | — | Gamma numeric identifier; list endpoints accept repeated IDs. |
| slug |  | — | Exact slug; list endpoints accept repeated slugs. |
| order |  | — | Comma-separated upstream field names to sort by, for example volume. |
| closed |  | — | Filter by whether the market, event or series is closed. |
| offset | 0 to … | — | Number of records to skip; increment by the page size. |
| tag_id |  | — | Numeric topic tag ID from tags/list. |

## What can you do with Polymarket market listings in Claude Code?

Build a market watchlist that keeps Polymarket questions attached to correctly labeled probabilities. A coding agent can add record parsing and comparisons with previously saved observations to your project.

### Prepare a probability briefing

Turn selected market questions into a short briefing with labeled outcome probabilities. Discover questions through listings or retrieve a known question by its ID or slug.

### Add trading activity to a market summary

Pair outcome probabilities with reported volume so a reader can compare expectations alongside trading activity.

### Maintain a question watchlist

Save the exact question, market ID, and slug for each selected market. Refresh the records to keep a watchlist tied to the same questions.

### Explain what a market asks

Use the returned question and description to write a plain-English explanation of the proposition behind its outcome probabilities.

### Build a market reference table

Organize market questions, identifiers, outcome labels, and status into a table for an editor or researcher reviewing public prediction markets.

### Compare saved probability snapshots

Collect repeated readings for selected questions and calculate changes between those saved observations. Include the exact question with each comparison.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Polymarket market listings in other agents

- [Amp](https://spiral.ai/integrations/amp/polymarket-market-listings)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/polymarket-market-listings)
- [Claude](https://spiral.ai/integrations/claude-desktop/polymarket-market-listings)
- [Cline](https://spiral.ai/integrations/cline/polymarket-market-listings)
- [Codex](https://spiral.ai/integrations/codex/polymarket-market-listings)
- [Cursor](https://spiral.ai/integrations/cursor/polymarket-market-listings)
- [Devin](https://spiral.ai/integrations/devin/polymarket-market-listings)
- [dots](https://spiral.ai/integrations/dots/polymarket-market-listings)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/polymarket-market-listings)
- [Gemini](https://spiral.ai/integrations/gemini/polymarket-market-listings)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/polymarket-market-listings)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/polymarket-market-listings)
- [goose](https://spiral.ai/integrations/goose/polymarket-market-listings)
- [Grok](https://spiral.ai/integrations/grok/polymarket-market-listings)
- [Grok Build](https://spiral.ai/integrations/grok-build/polymarket-market-listings)
- [Hermes](https://spiral.ai/integrations/hermes/polymarket-market-listings)
- [Instinct](https://spiral.ai/integrations/instinct/polymarket-market-listings)
- [Manus](https://spiral.ai/integrations/manus/polymarket-market-listings)
- [Muse](https://spiral.ai/integrations/muse/polymarket-market-listings)
- [Muse Code](https://spiral.ai/integrations/muse-code/polymarket-market-listings)
- [n8n](https://spiral.ai/integrations/n8n/polymarket-market-listings)
- [Notion](https://spiral.ai/integrations/notion/polymarket-market-listings)
- [OpenClaw](https://spiral.ai/integrations/openclaw/polymarket-market-listings)
- [opencode](https://spiral.ai/integrations/opencode/polymarket-market-listings)
- [Perplexity](https://spiral.ai/integrations/perplexity/polymarket-market-listings)
- [Raycast](https://spiral.ai/integrations/raycast/polymarket-market-listings)
- [VS Code](https://spiral.ai/integrations/vscode/polymarket-market-listings)
- [Windsurf](https://spiral.ai/integrations/windsurf/polymarket-market-listings)
- [Zapier](https://spiral.ai/integrations/zapier/polymarket-market-listings)

## More Claude Code guides

- [Polymarket market details by slug](https://spiral.ai/integrations/claude-code/polymarket-market-details-by-slug)
- [Polymarket market search](https://spiral.ai/integrations/claude-code/polymarket-market-search)
- [Polymarket market details by ID](https://spiral.ai/integrations/claude-code/polymarket-market-details-by-id)
- [Polymarket new political events](https://spiral.ai/integrations/claude-code/polymarket-new-political-events)
- [Polymarket event listings](https://spiral.ai/integrations/claude-code/polymarket-event-listings)
- [Polymarket series details](https://spiral.ai/integrations/claude-code/polymarket-series-details)

## Questions about Polymarket market listings in Claude Code

**Can Claude Code use Polymarket market listings?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Polymarket market listings like any built-in tool.

**How much does Polymarket market listings cost in Claude Code?**

$0.013 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Polymarket market listings in Claude Code?**

No. Spiral runs Polymarket market listings on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Polymarket market listings in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Polymarket market listings runs?**

Polymarket market listings runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**Does one Polymarket market describe an entire event?**

An event contains one or more markets. Each market describes a specific YES/NO question, so one market lookup can cover only part of a broader event.

**How do I match probabilities to the correct outcomes?**

Decode the outcome labels and probabilities into arrays, then match entries at the same position. This preserves the association between each label and its probability.

**What period does the daily volume figure cover?**

Polymarket defines its daily volume metric as trading volume over the past 24 hours.

**Are Polymarket probabilities confirmed outcomes?**

They represent the market's belief in an outcome's probability. A probability reading is a measure of market expectations, rather than confirmation that the event happened.

**Does Polymarket's catalog include closed markets?**

The market listing supports closed markets, but its default response contains open markets. Request closed markets explicitly when researching past questions.

