Skip to content

mostlyright.core.schemas.settlement

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

CLI settlement is canonically Fahrenheit — Kalshi contract labels are Fahrenheit and NWS CLI products report Fahrenheit. The schema has no metric mode; these values are the settlement values themselves.

Temporal mapping:

  • 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 read local_standard_date directly.
  • knowledge_time = product_release_time (parsed from the CLI product header).
ClassDescription
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 reported in Fahrenheit, which is the canonical unit for both Kalshi contract labels and the NWS CLI product itself. Adapters must not convert it.

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").