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_dateis the local climate day per NWS convention (no timezone applied to the date itself).station_tzis 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_utcis00:00 local time on local_standard_dateconverted to UTC. Used for sort / point-in-time joins only; downstream code that needs the local date must readlocal_standard_datedirectly.knowledge_time = product_release_time(parsed from the CLI product header).
Classes
Section titled “Classes”| Class | Description |
|---|---|
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.
imperial_renames: ClassVar[dict[str, str]]
Section titled “imperial_renames: ClassVar[dict[str, str]]”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").