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.
Prompts to try with Polymarket sports market types in opencode
Copy an example into opencode, or ask in your own words.
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
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Polymarket sports market types
One request; the result comes back by polling or a webhook.
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.
Polymarket sports market types providers and prices
Spiral runs Polymarket sports market types through Alexandria. Open a card for today's price, with every fee included.
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.
More on Polymarket sports market types and opencode
Overview
Polymarket sports market types in other agents
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.
Start using Polymarket sports market types in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


