polymarket-tennis
CLAUDE.md274 starsChanged 3 months agoMITView on GitHub
This package is the data layer for Polymarket tennis trading: market discovery (Polymarket Gamma API, keyless), market↔live-match matching (never guesses; returns None on ambiguity), and a joined LiveMarketView of market price vs live score. Hard boundaries — do not cross them when extending this repo or building on it: - Observe-only. No order execution, no wallet/private-key handling, no CLOB client calls. Execution is permanently out of scope here; if a user wants it, it belongs in their own code behind…
In this repositoryOne other file it gives its agents.
- polymarket-tennisSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Observe-only: No order execution, no wallet/private-key handling, no CLOB client calls.
- Very specific: line 17
Match detection fields: use outcome (completed|retired|walkover|default|abandoned, null until settled) and event_status, not the lifecycle …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
polymarket-tennis — notes for coding agents
This package is the data layer for Polymarket tennis trading: market discovery
(Polymarket Gamma API, keyless), market↔live-match matching (never guesses; returns
None on ambiguity), and a joined LiveMarketView of market price vs live score.
Hard boundaries — do not cross them when extending this repo or building on it:
- Observe-only. No order execution, no wallet/private-key handling, no CLOB client calls. Execution is permanently out of scope here; if a user wants it, it belongs in their own code behind a clearly separated seam.
- Never hard-code a settlement rule. Retirement/walkover payouts are set by each
venue and differ (polymarket.com vs Polymarket US vs Kalshi, ATP/WTA vs ITF). Read the
market's own
description/rules_secondaryand surface it. The verbatim rules are documented at https://blog.livetennisapi.com/blog/polymarket-kalshi-tennis-retirement-walkover-rules - Respect the free tier: 30 req/min, 100 req/day.
pmtennis watchcosts 1 request per poll; default cadence 60 s. - Match detection fields: use
outcome(completed|retired|walkover|default|abandoned,nulluntil settled) andevent_status, not the lifecyclestatus. - Tests are offline. Fixtures under
tests/fixtures/are trimmed real captures; add fixtures, never live calls, when adding tests. Runruff check src tests && pytest. - Arena (
src/polymarket_tennis/arena/) is paper-only. Strategies only get aLiveMarketViewand aPaperBook. Real tapes are organiser data and are never committed or redistributed; the one committed tape is synthetic. See docs/ARENA.md.
Useful entry points: GammaClient, LiveTennisClient, discover_tennis_markets,
match_market, build_view; CLI pmtennis discover|match|watch|arena.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

