360 Secure SkillHub
360 安全技能中心

Polymarket API

通过本地 Python 脚本调用 Polymarket 公开 Gamma API,支持按成交量查看热门市场、关键词搜索、按 slug 查询单个市场以及列出事件组,返回市场问题、Yes/No 价格(概率)、24 小时及总成交量。无需认证。

分类:搜索
dannyshmueli
dannyshmueli
热度 59.46
最近更新 2026-05-11 15:50:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add dannyshmueli/polymarket-api
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
polymarket
description
Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.

Polymarket

Query prediction market data from Polymarket's public API (no auth required).

Quick Start

# Top markets by 24h volume
python3 scripts/polymarket.py --top

# Search markets
python3 scripts/polymarket.py --search "trump"

# Get specific market by slug
python3 scripts/polymarket.py --slug "will-trump-win-the-2024-election"

# List events (grouped markets)
python3 scripts/polymarket.py --events

Script Location

skills/polymarket/scripts/polymarket.py

API Endpoints

The script uses gamma-api.polymarket.com:

  • /markets - Individual markets with prices, volumes
  • /events - Event groups containing related markets

Output Format

Markets show: question, Yes/No prices (as percentages), 24h volume, total volume.

Interpreting Prices

  • outcomePrices are 0-1 representing probability
  • Price of 0.65 for "Yes" = market thinks 65% chance of Yes
  • Higher volume = more liquid, more reliable signal