Examples#
Example:
client = kd.KalshiClient() # no credentials
try:
client.get_positions()
except kd.KalshiAuthError as e:
print(e)
kd.KalshiAuthErrorRaised when credentials are missing, incomplete or unreadable.
KalshiError.KalshiClientKalshiClient.from_envKalshiErrorstakepd.kalshi_data.Example:
client = kd.KalshiClient() # no credentials
try:
client.get_positions()
except kd.KalshiAuthError as e:
print(e)
This method is also covered, alongside the rest of the module, in the overview guide.