360 Secure SkillHub
360 安全技能中心

Polymarket Football Odds

该 Skill 通过打包的 TypeScript 脚本解析 Polymarket 足球赛事或市场链接、提取 slug 并获取 Gamma 元数据推断双方球队,再在 API-Football 中匹配赛程并调用预测接口,输出主胜/平/客胜概率或指定球队获胜概率,支持人类可读摘要与 --json 结构化输出。

remixmm
remixmm
热度 24.97
最近更新 2026-05-29 12:53:48
分类:数据依赖:代码执行 / 第三方 API应用场景:研究 / 数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add polymarket-football-odds
Metadata
name
polymarket-football-odds
description
Analyze Polymarket football/soccer match URLs and estimate match win/draw probabilities using API-Football/API-SPORTS. Use when the user provides a polymarket.com event or market URL for a soccer match and asks to identify the teams, query API-Football, calculate 1X2 probabilities, compare with Polymarket implied odds, or produce a win-probability summary.

Polymarket Football Odds

Overview

Use this skill to turn a Polymarket football URL into a football fixture lookup and a probability summary. The bundled TypeScript script extracts the Polymarket slug, fetches Gamma event/market metadata, infers the two teams, matches the fixture in API-Football, calls API-Football predictions, and prints home/draw/away probabilities.

Quick Start

Require an API-Football/API-SPORTS key in the environment. Do not hardcode the key in files or messages.

API_FOOTBALL_KEY="..." node --experimental-strip-types scripts/analyze-polymarket-football.ts "https://polymarket.com/event/..."

Use --json when the caller wants machine-readable output:

API_FOOTBALL_KEY="..." node --experimental-strip-types scripts/analyze-polymarket-football.ts "https://polymarket.com/event/..." --json

Workflow

  1. Run the script with the Polymarket URL. It accepts /event/{slug} URLs, /market/{slug} URLs, and raw slugs.
  2. Check the extracted Polymarket title, teams, and fixture. If the script reports multiple possible fixtures or low confidence, ask the user to confirm the fixture or rerun with --fixture-id.
  3. Report the API-Football 1X2 probabilities as:
    • home team win probability
    • draw probability
    • away team win probability
    • target-team win probability when the Polymarket market asks about a single team
  4. Include caveats: API-Football predictions are model outputs, fixture matching can be ambiguous, and Polymarket prices are market-implied prices rather than true probabilities.

Options

  • --json: print structured JSON instead of a human summary.
  • --fixture-id <id>: bypass fixture matching and call API-Football predictions for a known fixture ID.
  • --date YYYY-MM-DD: override the date used for fixture search.
  • --days <n>: search plus/minus n days around the Polymarket date or --date; default is 1.
  • --self-test: run local parser tests without network calls or API keys.

API Notes

Read references/api-football-polymarket.md before changing endpoint behavior. Use official endpoints only:

  • Polymarket Gamma is public and used only for market discovery.
  • API-Football requires the x-apisports-key request header.
  • API-Football predictions require a fixture ID, so the script must identify the fixture before calling /predictions.

Failure Handling

If the script cannot confidently identify two teams, do not invent team names. Explain which Polymarket title/outcomes were found and ask the user for the teams or fixture ID.

If API-Football returns no prediction for a fixture, report the fixture match and say prediction coverage is unavailable for that match. Do not substitute bookmaker odds as model probabilities unless the user explicitly asks for an odds-implied calculation.