Initial commit with translated description

This commit is contained in:
2026-03-29 09:37:51 +08:00
commit 03e94e7809
3 changed files with 200 additions and 0 deletions

44
SKILL.md Normal file
View File

@@ -0,0 +1,44 @@
---
name: polymarket
description: "查询Polymarket预测市场。用于关于预测市场、投注赔率、市场价格、事件概率的问题或当用户询问Polymarket数据时使用。"
---
# Polymarket
Query prediction market data from Polymarket's public API (no auth required).
## Quick Start
```bash
# 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