feat(sports): Wimbledon tennis coverage (ATP + WTA match-winner)#213
Open
michaelschecht wants to merge 1 commit into
Open
feat(sports): Wimbledon tennis coverage (ATP + WTA match-winner)#213michaelschecht wants to merge 1 commit into
michaelschecht wants to merge 1 commit into
Conversation
Wires KXATPMATCH (ATP) and KXWTAMATCH (WTA) through the edge-detection pipeline as h2h game markets. No spread or total — tennis is match-winner only on Kalshi. New `wimbledon` and `tennis` filter shortcuts route to tennis_atp_wimbledon / tennis_wta_wimbledon Odds API keys. Extends extract_event_teams() with a tennis-specific "wins this match against" regex and adds sport-display wiring (KXATP/KXWTA → "Tennis") in ticker_display.py. CAVEAT: Kalshi API was egress-blocked in the cloud environment so ticker prefixes (KXATPMATCH/KXWTAMATCH) were not directly verified. Must confirm locally: python scripts/scan.py sports --filter wimbledon --top 30 +10 tests → 503 passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wimbledon 2026 starts June 29. This PR wires Wimbledon ATP and WTA singles into the edge-detection pipeline so the daily scan picks up match-winner markets automatically.
KXATPMATCH→tennis_atp_wimbledon(Odds API),KXWTAMATCH→tennis_wta_wimbledon— added toCATEGORY_MAP(both as"game") andKALSHI_TO_ODDS_SPORTwimbledonandtennisfilter shortcuts —python scripts/scan.py sports --filter wimbledon --top 30detect_edge_gamepath handles itextract_event_teams()with a tennis-specific regex for the"If [Player A] wins this match against [Player B]"rules_primarypatternKXATP/KXWTAprefix →"Tennis"sport label inticker_display.py; player abbreviations from ticker suffixes pass through raw (not in the US-sport alias table)The Kalshi API was egress-blocked in the cloud environment during implementation, so the ticker prefixes could not be directly confirmed.
KXATPMATCH/KXWTAMATCHare the best-guess prefixes based on Kalshi's naming conventions.Required local validation step:
If the real prefix differs (e.g.
KXATPGAME,KXWTAGAME,KXWIMMEN,KXWMENSINGLES), update these four locations:CATEGORY_MAPinscripts/kalshi/edge_detector.pyKALSHI_TO_ODDS_SPORTinscripts/kalshi/edge_detector.pyFILTER_SHORTCUTSinscripts/kalshi/edge_detector.py_SPORT_PREFIXESinscripts/shared/ticker_display.pyIf the
rules_primarytext uses a different pattern than"wins this match against", extendextract_event_teams()inedge_detector.pyaccordingly. The comment in the new test class (TestTennisMappings) documents alternate prefixes to try.Test plan
python -m pytest -q→ 503 passing (was 493; +10 new tests)python scripts/scan.py sports --filter wimbledon --top 30— confirms live Kalshi ticker prefix and that odds events matchpython scripts/kalshi/edge_detector.py detail <ticker>— confirm player names extracted correctly fromrules_primaryFiles changed
scripts/kalshi/edge_detector.py,scripts/shared/ticker_display.py,tests/test_edge_detection.py,tests/test_ticker_display.py,CLAUDE.md,docs/kalshi/kalshi-sports-betting/SPORTS_GUIDE.md,docs/CHANGELOG.mdGenerated by Claude Code