Skip to content

mostlyright.core.schemas.settlement

NWS CLI settlement schema (schema.settlement.cli.v1).

Per docs/design.md §BB.3 (which supersedes the §A table). CLI settlement is canonically Fahrenheit — Kalshi contract labels are Fahrenheit and NWS CLI products report Fahrenheit. The schema has no metric mode; the values ARE the settlement truth.

Temporal mapping (§U + §BB.3):

  • local_standard_date is the local climate day per NWS convention (no timezone applied to the date itself).
  • station_tz is the IANA timezone for the station ("America/Chicago" for KORD), looked up from a static table per ICAO code. Required for local-climate-day semantics.
  • event_time_utc is 00:00 local time on local_standard_date converted to UTC. Used for sort / point-in-time joins only; downstream code that needs the local date MUST use local_standard_date directly.
  • knowledge_time = product_release_time (parsed from the CLI product header).
SettlementSchema()schema.settlement.cli.v1 — NWS CLI daily settlement rows.

class mostlyright.core.schemas.settlement.SettlementSchema

Section titled “class mostlyright.core.schemas.settlement.SettlementSchema”

Bases: Schema

schema.settlement.cli.v1 — NWS CLI daily settlement rows.

No imperial rename map: CLI settlement IS Fahrenheit, and Fahrenheit is the canonical unit for both Kalshi contract labels and the NWS CLI product itself. Adapters must NOT convert.

Settlement values are already in canonical Fahrenheit / inches; no imperial-mode rename map applies. Schema.column_names("imperial") returns the same names as column_names("metric").