Skip to content

mostlyright.markets.catalog.kalshi_stations

mostlyright.markets.catalog.kalshi_stations

Section titled “mostlyright.markets.catalog.kalshi_stations”

Kalshi NHIGH / NLOW settlement station whitelist.

Kalshi’s NHIGH (daily high temperature) and NLOW (daily low temperature) markets settle against the NWS CLI report for a SPECIFIC station — NOT the airport you’d assume. Common surprises:

  • NYC settles against KNYC (Central Park), NOT KLGA or KJFK.
  • Chicago settles against KMDW (Midway), NOT KORD (O’Hare).
  • DC settles against KDCA (Reagan National), NOT KIAD or KBWI.

Citations are URLs to the Kalshi contract specification pages where the issuer documents the settlement station. These are committed to the repo so the v0.14.1 parity gate cannot regress on station identity.

This is parity-critical. A wrong station mapping silently settles backtests against the wrong data; the model “works” but trades garbage. The contract test in this module asserts no entry resolves to {KLGA, KJFK, KORD, KIAD, KBWI} — the most common wrong answers.

KALSHI_SETTLEMENT_STATIONSCity ticker → (settlement station ICAO, citation URL).
KNOWN_WRONG_STATIONSThe known-WRONG stations that must NEVER appear in KALSHI_SETTLEMENT_STATIONS values.
StationCitation(station, citation)A station mapping with its Kalshi citation.

mostlyright.markets.catalog.kalshi_stations.KALSHI_SETTLEMENT_STATIONS : Final[dict[str, StationCitation]] = {‘ATL’: StationCitation(station=‘KATL’, citation=‘https://kalshi.com/markets/khighatl (Atlanta Hartsfield-Jackson)’), ‘AUS’: StationCitation(station=‘KAUS’, citation=‘https://kalshi.com/markets/khighaus (Austin-Bergstrom; the only Austin station Kalshi cites)’), ‘BNA’: StationCitation(station=‘KBNA’, citation=‘https://kalshi.com/markets/khighbna (Nashville International)’), ‘BOS’: StationCitation(station=‘KBOS’, citation=‘https://kalshi.com/markets/khighbos (Boston Logan)’), ‘CHI’: StationCitation(station=‘KMDW’, citation=‘https://kalshi.com/markets/khighchi (Midway, NOT ORD)’), ‘CVG’: StationCitation(station=‘KCVG’, citation=‘https://kalshi.com/markets/khighcvg (Cincinnati/Northern Kentucky International)’), ‘DAL’: StationCitation(station=‘KDFW’, citation=‘https://kalshi.com/markets/khighdal (DFW, NOT Love Field)’), ‘DCA’: StationCitation(station=‘KDCA’, citation=‘https://kalshi.com/markets/khighdca (Reagan National, NOT Dulles or BWI)’), ‘DEN’: StationCitation(station=‘KDEN’, citation=‘https://kalshi.com/markets/khighden (Denver International)’), ‘DTW’: StationCitation(station=‘KDTW’, citation=‘https://kalshi.com/markets/khighdtw (Detroit Metropolitan)’), ‘HOU’: StationCitation(station=‘KIAH’, citation=‘https://kalshi.com/markets/khighhou (Intercontinental, NOT Hobby; Kalshi cites IAH)’), ‘LAX’: StationCitation(station=‘KLAX’, citation=‘https://kalshi.com/markets/khighlax (LAX international)’), ‘MIA’: StationCitation(station=‘KMIA’, citation=‘https://kalshi.com/markets/khighmia (Miami International)’), ‘MSP’: StationCitation(station=‘KMSP’, citation=‘https://kalshi.com/markets/khighmsp (Minneapolis-St. Paul International)’), ‘NYC’: StationCitation(station=‘KNYC’, citation=‘https://kalshi.com/markets/khighny (Central Park, NOT LGA/JFK)’), ‘PHL’: StationCitation(station=‘KPHL’, citation=‘https://kalshi.com/markets/khighphl (Philadelphia International)’), ‘PHX’: StationCitation(station=‘KPHX’, citation=‘https://kalshi.com/markets/khighphx (Sky Harbor International)’), ‘SEA’: StationCitation(station=‘KSEA’, citation=‘https://kalshi.com/markets/khighsea (SeaTac, NOT BFI)’), ‘SFO’: StationCitation(station=‘KSFO’, citation=‘https://kalshi.com/markets/khighsfo (San Francisco International, NOT OAK)’), ‘SLC’: StationCitation(station=‘KSLC’, citation=‘https://kalshi.com/markets/khighslc (Salt Lake City International)’), ‘TLV’: StationCitation(station=‘KLAS’, citation=‘https://kalshi.com/markets/kxhightlv (Harry Reid/McCarran; settles vs NWS CLILAS)’)}

Section titled “mostlyright.markets.catalog.kalshi_stations.KALSHI_SETTLEMENT_STATIONS : Final[dict[str, StationCitation]] = {‘ATL’: StationCitation(station=‘KATL’, citation=‘https://kalshi.com/markets/khighatl (Atlanta Hartsfield-Jackson)’), ‘AUS’: StationCitation(station=‘KAUS’, citation=‘https://kalshi.com/markets/khighaus (Austin-Bergstrom; the only Austin station Kalshi cites)’), ‘BNA’: StationCitation(station=‘KBNA’, citation=‘https://kalshi.com/markets/khighbna (Nashville International)’), ‘BOS’: StationCitation(station=‘KBOS’, citation=‘https://kalshi.com/markets/khighbos (Boston Logan)’), ‘CHI’: StationCitation(station=‘KMDW’, citation=‘https://kalshi.com/markets/khighchi (Midway, NOT ORD)’), ‘CVG’: StationCitation(station=‘KCVG’, citation=‘https://kalshi.com/markets/khighcvg (Cincinnati/Northern Kentucky International)’), ‘DAL’: StationCitation(station=‘KDFW’, citation=‘https://kalshi.com/markets/khighdal (DFW, NOT Love Field)’), ‘DCA’: StationCitation(station=‘KDCA’, citation=‘https://kalshi.com/markets/khighdca (Reagan National, NOT Dulles or BWI)’), ‘DEN’: StationCitation(station=‘KDEN’, citation=‘https://kalshi.com/markets/khighden (Denver International)’), ‘DTW’: StationCitation(station=‘KDTW’, citation=‘https://kalshi.com/markets/khighdtw (Detroit Metropolitan)’), ‘HOU’: StationCitation(station=‘KIAH’, citation=‘https://kalshi.com/markets/khighhou (Intercontinental, NOT Hobby; Kalshi cites IAH)’), ‘LAX’: StationCitation(station=‘KLAX’, citation=‘https://kalshi.com/markets/khighlax (LAX international)’), ‘MIA’: StationCitation(station=‘KMIA’, citation=‘https://kalshi.com/markets/khighmia (Miami International)’), ‘MSP’: StationCitation(station=‘KMSP’, citation=‘https://kalshi.com/markets/khighmsp (Minneapolis-St. Paul International)’), ‘NYC’: StationCitation(station=‘KNYC’, citation=‘https://kalshi.com/markets/khighny (Central Park, NOT LGA/JFK)’), ‘PHL’: StationCitation(station=‘KPHL’, citation=‘https://kalshi.com/markets/khighphl (Philadelphia International)’), ‘PHX’: StationCitation(station=‘KPHX’, citation=‘https://kalshi.com/markets/khighphx (Sky Harbor International)’), ‘SEA’: StationCitation(station=‘KSEA’, citation=‘https://kalshi.com/markets/khighsea (SeaTac, NOT BFI)’), ‘SFO’: StationCitation(station=‘KSFO’, citation=‘https://kalshi.com/markets/khighsfo (San Francisco International, NOT OAK)’), ‘SLC’: StationCitation(station=‘KSLC’, citation=‘https://kalshi.com/markets/khighslc (Salt Lake City International)’), ‘TLV’: StationCitation(station=‘KLAS’, citation=‘https://kalshi.com/markets/kxhightlv (Harry Reid/McCarran; settles vs NWS CLILAS)’)}”

City ticker → (settlement station ICAO, citation URL). The 21-city Kalshi NHIGH/NLOW universe per v0.1.0 scope. The citation URL is the live Kalshi contract page; if the issuer renames the city ticker the citation URL still resolves and the test stays green.

The remaining cities (Honolulu, Anchorage, etc.) defer to Phase 3.1 international expansion + post-v0.1 additions.

mostlyright.markets.catalog.kalshi_stations.KNOWN_WRONG_STATIONS : Final[frozenset[str]] = frozenset({‘KBWI’, ‘KDAL’, ‘KEWR’, ‘KHOU’, ‘KIAD’, ‘KJFK’, ‘KLGA’, ‘KOAK’, ‘KORD’})

Section titled “mostlyright.markets.catalog.kalshi_stations.KNOWN_WRONG_STATIONS : Final[frozenset[str]] = frozenset({‘KBWI’, ‘KDAL’, ‘KEWR’, ‘KHOU’, ‘KIAD’, ‘KJFK’, ‘KLGA’, ‘KOAK’, ‘KORD’})”

The known-WRONG stations that must NEVER appear in KALSHI_SETTLEMENT_STATIONS values. Contract test test_no_wrong_stations enforces this.

class mostlyright.markets.catalog.kalshi_stations.StationCitation(station, citation)

Section titled “class mostlyright.markets.catalog.kalshi_stations.StationCitation(station, citation)”

Bases: object

A station mapping with its Kalshi citation.

  • Parameters:
    • station (str)
    • citation (str)