[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Polymarket sports market types](https://spiral.ai/integrations/opencode/polymarket-sports-market-types)

# How to Use Polymarket sports market types in opencode

Get the valid sports market type names in a marketTypes list. Use these names to validate classifications or prepare later market searches. Polymarket documents moneyline, spreads, and totals as examples; retrieve the list instead of treating those three examples as the complete catalog.

|  |  |
| --- | --- |
| Model | Polymarket sports market types |
| 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 sports market types in opencode

- Use Polymarket sports market types to compare the current valid names with this project's market classification enum. Show additions and unmatched local values.
- Use Polymarket sports market types to check whether moneyline, spreads, and totals are returned, then prepare a mapping from those exact names to readable labels in this project's sports filters.
- Use Polymarket sports market types to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Polymarket sports market types and tell me what changed since last week.
- Check Polymarket sports market types and summarize what you find in three bullet points.

## How to set up Polymarket sports market types 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 sports market types**: 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/sports/market-types",
    "input": {}
  }'
```

Then paste one of the prompts above: opencode finds Polymarket sports market types on Spiral, shows the price and runs it.

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

## Polymarket sports market types tools and prices

- [Polymarket · Market types](https://spiral.ai/tools/alexandria/polymarket/sports/market-types) (Alexandria): $0.013 per call.

## What can you do with Polymarket sports market types in opencode?

Replace hardcoded league mappings and market classifications in a sports project with Polymarket reference data. A coding agent can compare returned tags, series identifiers, and type names with the project's configuration and prepare a reviewable update.

### Validate market classifications

Compare classifications in a research dataset with the returned valid market type names and flag unmatched values for review.

### Prepare searches by market type

Retrieve the valid names needed to prepare separate market searches for winners, spreads, and combined-score totals.

### Monitor reference catalog changes

Compare successive responses to report added or removed sport records, changed league identifiers, and changes to valid market type names.

### Replace hardcoded sports references

Populate a project's league mappings and market classification choices from returned reference data, then flag differences from the existing configuration.

## Overview

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

## Polymarket sports market types in other agents

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

## More opencode guides

- [Polymarket series directory](https://spiral.ai/integrations/opencode/polymarket-series-directory)
- [Polymarket sports metadata](https://spiral.ai/integrations/opencode/polymarket-sports-metadata)
- [Polymarket series details](https://spiral.ai/integrations/opencode/polymarket-series-details)
- [Polymarket tag details](https://spiral.ai/integrations/opencode/polymarket-tag-details)
- [Polymarket new political events](https://spiral.ai/integrations/opencode/polymarket-new-political-events)
- [Polymarket tag directory](https://spiral.ai/integrations/opencode/polymarket-tag-directory)

## Questions about Polymarket sports market types in opencode

**Can opencode use Polymarket sports market types?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Polymarket sports market types like any built-in tool.

**How much does Polymarket sports market types 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 sports market types in opencode?**

No. Spiral runs Polymarket sports market types 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 sports market types in opencode?**

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

**Does opencode wait while Polymarket sports market types runs?**

Polymarket sports market types runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How do the two sports lookups differ?**

Sports metadata returns records with six documented fields: sport, image, resolution, ordering, tags, and series. Sports market types returns a marketTypes list of valid classification names.

**Are moneyline, spreads, and totals the complete market type list?**

Those three appear in the guide’s example. The dedicated lookup returns the list described as all valid sports market types, so use that response for your allowed names.

**Does a market type name identify what a market measures?**

Yes. Polymarket distinguishes moneyline as which team wins, spreads as the winning margin, and totals as the combined score. Its guide uses returned type names to filter later market listings.

**Can I redistribute this data to financial firms?**

Polymarket’s terms require written agreement for commercial exploitation of its data for capital market clients or market data distributors. Public availability does not establish that redistribution permission.

