Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I Vibe-Coded a Polymarket Tennis Market Watcher With One Prompt in Claude Code

Description and use

An observe‑only Python watcher for Polymarket tennis markets was built in one prompt using Claude Code, pulling live data from Polymarket and Live Tennis APIs and logging key events without placing orders.

Problem

Build a real‑time tennis market watcher that logs price movements and key match events without placing real orders.

Outcome

The generated script successfully logged market data and key match events during the US Open, demonstrating that Claude Code can produce a functional observe‑only watcher from a single prompt.

Workflow

  • 1. Install polymarket‑tennis via pip.
  • 2. Use GammaClient.discover_tennis_markets() to list open moneyline markets.
  • 3. Instantiate LiveTennisClient with LIVETENNIS_API_KEY to fetch live matches and fixtures.
  • 4. For each market, call match_market() to get candidates and skip None results.
  • 5. Build a view with build_view() and log market question, outcome prices, live score line, server, break‑point flag, and staleness ages every minute (respecting free tier limits).
  • 6. Maintain a local JSON “paper book” recording entries when the favourite faces a break point and price moves when the match resolves.
  • 7. Handle retired or walkover outcomes by printing the market description’s settlement text.
  • 8. Add README, requirements.txt, and offline tests with fixtures.
  • 9. Run the script in observe‑only mode (no wallets, no keys beyond the tennis API key).

Evidence

Claude Code fetched the GitHub repo and read the installed package's source instead of relying on the README alone.

Source

The script logs market question, both outcome prices, the live score line, who is serving, the break‑point flag, and both staleness ages.

Source

  • Record date: 2026-09-07T16:59:44.486Z