Skip to content

v0.1.0

Latest

Choose a tag to compare

@bensynapse bensynapse released this 18 Aug 02:41
· 3 commits to main since this release

First release of polymarket-tennis — an observe-only Python toolkit that makes tennis event markets on Polymarket first-class.

Built and maintained by the Live Tennis API team (vendor disclosure: this joins Polymarket's public Gamma API with our live-score feed).

Highlights

  • Discovery — find current tennis markets via Polymarket's public, keyless Gamma API (tennis tag, per-match events, futures), normalized to plain Python objects.
  • Matching — pair a market with a Live Tennis API match/fixture using folded player-name + date heuristics with confidence scoring; reversed name order, diacritics, and retirement/walkover wording handled; returns None on ambiguity — never a silent guess; explicit match-id override available.
  • Joined viewLiveMarketView: market question and outcome prices next to the live score line, server, break-point flag, and set state, with staleness timestamps for both feeds.
  • CLIpmtennis discover (keyless), pmtennis match, pmtennis watch (default 60 s cadence; the free tier's 30 req/min + 100 req/day budget math is printed up front).

Notes

  • Observe-only by design: no order execution, no wallet handling; execution is out of scope.
  • Market prices come from Polymarket's public Gamma API; the Live Tennis API's own market-prices / win-probability fields are paid tiers and not required.
  • 81 fixture-driven tests, zero network; CI runs ruff + pytest on Python 3.10 and 3.12.

Install: pip install "polymarket-tennis @ git+https://github.com/livetennisapi/polymarket-tennis@v0.1.0" (sdist + wheel attached).