# Polymarket Sync Events

> Sync sports events from Polymarket. Use when users ask to "sync polymarket events", "fetch sports events", "import polymarket event data", or "get prediction market events". Fetches active events with embedded markets, maps to documents, and stores with embeddings.

- Skill: `machina-sports/polymarket-sync-events` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add machina-sports/polymarket-sync-events`
- Raw SKILL.md: https://api.skillmd.com/api/skills/machina-sports/polymarket-sync-events/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: machina-sports (https://skillmd.com/u/machina-sports)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/machina-sports/polymarket-sync-events

---


# Polymarket - Sync Events

Syncs active sports events from Polymarket Gamma API into `polymarket-events` documents with vector embeddings.

## Workflow

**Name**: `polymarket-sync-events`

| Input | Default | Description |
|-------|---------|-------------|
| `tag_id` | `1` (Sports) | Polymarket tag filter |
| `series_id` | `""` (all) | Filter by series/league |
| `limit` | `100` | Max events to fetch |
| `offset` | `0` | Pagination offset |

## Usage

```python
# Sync all sports events
mcp__docker-localhost__execute_workflow(
    name="polymarket-sync-events",
    input_data={"tag_id": 1, "limit": 100}
)

# Sync events from a specific series/league
mcp__docker-localhost__execute_workflow(
    name="polymarket-sync-events",
    input_data={"series_id": "<series_id>", "limit": 50}
)
```

## Pipeline

```
get_sports_events → polymarket-event-mapping → bulk-save (polymarket-events)
```

## Dependencies

- **polymarket** connector (no auth required)
- **machina-ai** connector (for embeddings) — requires `$TEMP_CONTEXT_VARIABLE_SDK_OPENAI_API_KEY`

