You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Models: WS payloads use raw str for _fp / _dollars fields (OrderGroup, Ticker) #258
Two WS payload classes still expose dollar/count fields as raw strings, defeating the SDK contract that every _dollars field is DollarDecimal and every _fp field is FixedPointCount (the #225 + #230 coercion contract).
OrderGroupPayload.contracts_limit: str | None (validation_alias contracts_limit_fp) — should be FixedPointCount. The REST mirror kalshi/models/order_groups.py:OrderGroup.contracts_limit already uses FixedPointCount.
TickerPayload.dollar_volume: str, TickerPayload.dollar_open_interest: str — should be DollarDecimal. These are dollar-denominated quantities pushed on every ticker update (one of the highest-volume channels).
Downstream code has to remember to wrap them in Decimal(...) and risks Decimal("") InvalidOperation if the server ever emits an empty string.
Activity
feat(models)!: tighten _fp/_dollars and strike/fee fields to Decimal (#…
release: 2.5.0 — post-v2.4 multi-reviewer SDK audit closure (#273) (#294