[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Polymarket new political events](https://spiral.ai/integrations/opencode/polymarket-new-political-events)

# How to Use Polymarket new political events in opencode

Returns titles, links, publication times, sources, and categories for newly listed political events. Use it to discover new election questions for a watchlist or research brief.

|  |  |
| --- | --- |
| Model | Polymarket new political events |
| 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 new political events in opencode

- Use Polymarket new political events to retrieve recent election listings and add their titles, links, and publication times to my project's research queue.
- Use Polymarket new political events to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Polymarket new political events and tell me what changed since last week.
- Check Polymarket new political events and summarize what you find in three bullet points.
- Pull the newest data from Polymarket new political events and give me the result as a table.

## How to set up Polymarket new political events in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 new political events**: 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/events/latest",
    "input": {
      "limit": 50
    }
  }'
```

Then paste one of the prompts above: opencode finds Polymarket new political events on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Polymarket new political events tools and prices

- [Polymarket · Latest events](https://spiral.ai/tools/alexandria/polymarket/events/latest) (Alexandria): $0.013 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 100 | 50 | Most events returned, 1 to 100. Missing means 50. |
| since |  | — | RFC3339 time; only events created after it. Alias of publishedSince; when both are set the later applies. |
| filter | midterms, elections, politics | midterms | Polymarket topic tag: midterms (US 2026 midterms, the default), elections (every election worldwide) or politics. |
| publishedSince |  | — | RFC3339 alias of since. |

## What can you do with Polymarket new political events in opencode?

Build a linked Polymarket event directory in your project. Your coding agent can organize event listings and connect selected titles to detailed records and underlying questions.

### Daily election research brief

Build a linked brief of election questions listed on Polymarket. Use new listings to identify additions and detailed event records to explain the underlying questions.

### Newsroom assignment queue

Turn political event titles into reporting leads. Link each lead to its Polymarket event, then inspect the underlying markets before assigning a story.

### Election question directory

Maintain a searchable directory of Polymarket election questions. Add newly discovered events and use detailed records to organize their constituent markets.

### Political coverage review

Compare a research team's election watchlist with the political questions appearing on Polymarket. Identify topics to investigate and inspect the corresponding event records.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Polymarket new political events in other agents

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

## More opencode guides

- [Polymarket market search](https://spiral.ai/integrations/opencode/polymarket-market-search)
- [Polymarket series details](https://spiral.ai/integrations/opencode/polymarket-series-details)
- [Polymarket market listings](https://spiral.ai/integrations/opencode/polymarket-market-listings)
- [Polymarket series directory](https://spiral.ai/integrations/opencode/polymarket-series-directory)
- [Polymarket market details by slug](https://spiral.ai/integrations/opencode/polymarket-market-details-by-slug)
- [Polymarket sports market types](https://spiral.ai/integrations/opencode/polymarket-sports-market-types)

## Questions about Polymarket new political events in opencode

**Can opencode use Polymarket new political events?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Polymarket new political events like any built-in tool.

**How much does Polymarket new political events cost in opencode?**

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

**Do I need an Alexandria account to use Polymarket new political events in opencode?**

No. Spiral runs Polymarket new political events 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 new political events in opencode?**

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

**Does opencode wait while Polymarket new political events runs?**

Polymarket new political events runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Is a Polymarket event the same as a market?**

An event groups one or more markets. Each underlying market is a separate yes/no question, so an election event can contain several questions rather than one combined probability.

**Does this data also cover Polymarket US?**

Polymarket's international and US exchanges use distinct APIs and manage their data separately. Gamma event data should not be treated as a combined inventory of both exchanges.

**Can Polymarket event records include closed events?**

Yes. Polymarket's general event listing includes both open and closed events when the closed-status filter is omitted.

**Are Polymarket odds fixed after an event is listed?**

No. Trading can continue before an event concludes, and the market-implied probability can change as new information arrives.

**What do Polymarket odds actually measure?**

They represent the market's current implied probability of an outcome. They are a forecast produced by trading, so an event's odds should not be described as an official election result or a confirmed fact.

