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
Async total_resting_order_value docstring drops the FCM/403/demo-parity note the sync has #338
The sync PortfolioResource.total_resting_order_value docstring tells callers up-front that non-FCM accounts receive 403 on this route, and that demo mirrors prod per the Path B audit (2026-04-18). The async counterpart only carries the FCM line. An async caller seeing an unexpected 403 has to find the sync class to read the rest of the explanation.
kalshi/resources/portfolio.py:206-213 — sync, full explanation:
deftotal_resting_order_value(
self, *, extra_headers: dict[str, str] |None=None
) ->TotalRestingOrderValue:
"""Total value of resting orders in cents. FCM-members only. Non-FCM accounts receive 403; demo mirrors prod on this route per Path B audit (2026-04-18). """
asyncdeftotal_resting_order_value(
self, *, extra_headers: dict[str, str] |None=None
) ->TotalRestingOrderValue:
"""Total value of resting orders in cents. FCM-members only."""
Suggested fix
Copy the full sync docstring into the async method, or replace the async body with """Async counterpart of :meth:PortfolioResource.total_resting_order_value.""" so Sphinx / IDE hover renders the same content. Sweep the rest of kalshi/resources/portfolio.py for similar sync→async docstring drift while in there.
Activity
docs(resources): sync/async docstring drift sweep (#334, #337, #338, #…