fix(stations): 20-city Kalshi universe — drop 4 phantom cities, add NOLA/OKC/SATX#125
Open
helloiamvu wants to merge 1 commit into
Open
fix(stations): 20-city Kalshi universe — drop 4 phantom cities, add NOLA/OKC/SATX#125helloiamvu wants to merge 1 commit into
helloiamvu wants to merge 1 commit into
Conversation
…om cities, adds NOLA/OKC/SATX The v0.1.0 scope doc drifted from the live exchange (verified 2026-07-15 against GET /trade-api/v2/series?category=Climate and Weather + per-series settlement_sources): - DTW/CVG/BNA/SLC have no Kalshi daily-temperature markets (all series probes 404) — dropped from KALSHI_SETTLEMENT_STATIONS; their station records remain as bare weather stations (Phase 23 precedent). - NOLA→KMSY (CLI issuedby=MSY, NOT Lakefront KNEW), OKC→KOKC, SATX→KSAT (NOT Stinson KSSF) are live markets the registry missed — added, with KNEW/KSSF added to KNOWN_WRONG_STATIONS. - _KALSHI_TICKER_ALIASES now covers the live KXHIGHT<CITY>/KXLOWT<CITY> series family (plus KXHIGHPHIL/KXHIGHNYD/KXHIGHTEMPDEN), which previously failed city-ticker resolution for every city but Las Vegas. - Core venue tags, satellite backfill roster (union 66→65, satellite roster 65→64, batch.tf/workflow task math), schemas, and generated TS data modules updated in lockstep; Python + TS contract tests re-pinned. Python: core/markets/weather suites green (one pre-existing unrelated failure in tests/test_parity.py reproduces on clean main). TS: core 806 passed, markets 296 passed after building core. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
✅ Docs-required check: PASS API-surface change includes docs updates — no reminder needed. API-surface files changed: Docs files changed: |
|
Parity ticket gate: PASSED See |
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
The
KALSHI_SETTLEMENT_STATIONSregistry drifted from the live exchange. Verified against the live Kalshi API on 2026-07-15 (GET /trade-api/v2/series?category=Climate and Weather+ per-seriessettlement_sources):KXHIGHTDTW,KXHIGHDTW,KXHIGHTCVG,KXHIGHTBNA,KXHIGHTSLC,KXHIGHSLC). TheirStationInforecords remain as bare weather stations (the Phase 23 precedent).NOLA→ KMSY (KXHIGHTNOLA; CLIsite=LIX&issuedby=MSY; NOT Lakefront KNEW)OKC→ KOKC (KXHIGHTOKC; CLIsite=OUN&issuedby=OKC)SATX→ KSAT (KXHIGHTSATX; CLIsite=EWX&issuedby=SAT; NOT Stinson KSSF)KNOWN_WRONG_STATIONSgains KNEW + KSSF.This is parity-critical: a backtest keyed to the phantom four settled against data no market resolves on.
Also in this change
_KALSHI_TICKER_ALIASESnow covers the liveKXHIGHT<CITY>/KXLOWT<CITY>series family (plusKXHIGHPHIL,KXHIGHNYD,KXHIGHTEMPDEN). Previouslysettles_for("kalshi:KXHIGHTATL-…")failed city-ticker resolution for every city except Las Vegas (whoseTLVkey is itself an artifact of this parsing).kalshivenue tags updated in lockstep (filter_by_venue("kalshi")== 20).infra/batch.tfandrun-weather-backfill.ymltask math updated (note: the next full fleet run uses task_count = 64 × years).Test plan
pytest packages/core/tests packages/markets/tests packages/weather/tests— green (one pre-existing unrelated failure intests/test_parity.py::test_dataset_is_research_aliasreproduces on clean main).@mostlyrightmd/core806 passed;@mostlyrightmd/markets296 passed (after building core).kaggle-datasets(its build script imports this registry from PyPI — needs a release with this fix).🤖 Generated with Claude Code