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
Provide key_id + private_key_path when constructing the client, or set KALSHI_KEY_ID + KALSHI_PRIVATE_KEY environment variables.
Only KALSHI_PRIVATE_KEY (in-memory PEM) is mentioned. README, docs/authentication.md, and docs/environment-variables.md all present KALSHI_PRIVATE_KEY_PATH as the primary/most-common option (file on disk). A user hitting this error and following the prompt will not realize the path-based env var exists.
Location
kalshi/errors.py:22-27
Evidence
# kalshi/errors.py:22-27super().__init__(
messageor"This endpoint requires authentication. ""Provide key_id + private_key_path when constructing the client, ""or set KALSHI_KEY_ID + KALSHI_PRIVATE_KEY environment variables.",
status_code=None,
)
or"This endpoint requires authentication. ""Provide key_id + private_key_path when constructing the client, ""or set KALSHI_KEY_ID + (KALSHI_PRIVATE_KEY_PATH or KALSHI_PRIVATE_KEY) ""environment variables. See https://texascoding.github.io/kalshi-python-sdk/authentication/",
Activity