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
CreateOrderV2Request docstring references nonexistent FixedPointDollars Python type #339
The CreateOrderV2Request docstring introduces V2's pricing convention as price: FixedPointDollars. There is no Python type named FixedPointDollars exported by the SDK — kalshi/types.py exposes DollarDecimal, FixedPointCount, MultiplierDecimal, NullableList, UnixSecondsTimestamp, and StrictInt. The actual annotation a few lines down is DollarDecimal. (FixedPointDollarsis the OpenAPI wire schema name, but it never names a Python alias — and the comment in markets.py has the same drift.)
Readers chase a phantom alias when reading the docstring; mkdocs autodoc surfaces this prose on the published reference site.
kalshi/types.py:50 — DollarDecimal is the real alias; no FixedPointDollars.
Suggested fix
Replace FixedPointDollars with DollarDecimal in the docstring at kalshi/models/orders.py:467. Update the comment at kalshi/models/markets.py:35 to # Price fields (DollarDecimal — wire shape: FixedPointDollars string) so the wire schema name is preserved but the Python type is unambiguous. (Other occurrences in docs/types.md, docs/resources/index.md, docs/migration.md, and the test files refer to the wire schema name and are correct as-is.)
Activity
docs(resources): sync/async docstring drift sweep (#334, #337, #338, #…