Skip to content

mostlyright.markets

mostlyright.markets — prediction-market data (Kalshi, Polymarket).

The venue submodules own ALL venue knowledge and speak the domain grammar a quant can guess from weather / economy:

  • mostlyright.markets.kalshikalshi.training_table (the leakage-free supervised table over the Kalshi NHIGH/NLOW label="cli" settlement target), kalshi.label (the .label.settlement registration), kalshi.settlement_days (the who/when day grid, per-row originating ticker retained), kalshi.parse_ticker.
  • mostlyright.markets.polymarketpolymarket.training_table (the WU/NOAA-WRH daily_extremes target), polymarket.label, polymarket.settlement_days (per-row originating entity retained), polymarket.discover / polymarket.settle.
  • mostlyright.markets.economy_trades — Kalshi venue price-history (OHLC candlesticks) for SETTLED economy markets.

The venue catalog (settlement whitelists, city→station maps) lives under mostlyright.markets.catalog. The live trade-history impls (candles / fills / orderbook / Gamma history+snapshot) are PRIVATE internal modules (_kalshi_trades / _polymarket_trades) — undocumented, not part of the venue grammar.

Grammar note (orchestrator ruling, 04): the venue-level training_table signatures are param-cap-EXEMPT. markets.kalshi.training_table (6 named params) and markets.polymarket.training_table (8) are thin delegators to core research.dataset; the <=5-param grammar cap binds only the TOP-LEVEL domain verb (weather.training_table / economy.training_table, PRD §4.2). Slimming a venue signature is an UNSIGNED behavior change and is out of scope.

catalogmostlyright.markets.catalog — prediction market contract specs.
economy_tradesKalshi venue price-history for SETTLED economy markets — with documented depth.
kalshiKalshi thin-sugar layer over the venue-free core composition body.
polymarketPolymarket discovery + settlement (US + international).